Browse Source

fixed bug in hue driver where it would update either all or no bulbs.

pull/1/head
Gisle Aune 4 years ago
parent
commit
fff01befda
  1. 3
      internal/drivers/hue/bridge.go

3
internal/drivers/hue/bridge.go

@ -114,8 +114,9 @@ func (b *Bridge) SyncStale(ctx context.Context) error {
for i, input := range inputs { for i, input := range inputs {
index := indices[i] 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() return eg.Wait()

Loading…
Cancel
Save