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

This commit is contained in:
2021-06-06 15:22:56 +02:00
parent ea3037b03a
commit fff01befda
+2 -1
View File
@@ -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()