fixed bug in hue driver where it would update either all or no bulbs.
This commit is contained in:
@@ -114,8 +114,9 @@ func (b *Bridge) SyncStale(ctx context.Context) error {
|
||||
|
||||
for i, input := range inputs {
|
||||
index := indices[i]
|
||||
inputCopy := input
|
||||
|
||||
eg.Go(func() error { return b.putLightState(ctx, index, input) })
|
||||
eg.Go(func() error { return b.putLightState(ctx, index, inputCopy) })
|
||||
}
|
||||
|
||||
return eg.Wait()
|
||||
|
||||
Reference in New Issue
Block a user