Browse Source

fix oops in bridgetest.

pull/1/head
Gisle Aune 4 years ago
parent
commit
74fb2c6b5a
  1. 3
      cmd/bridgetest/main.go

3
cmd/bridgetest/main.go

@ -126,13 +126,14 @@ func main() {
for _, id := range ids { for _, id := range ids {
if id == -1 || id == device.ID { if id == -1 || id == device.ID {
if (color.IsKelvin() && device.HasCapability(models.DCColorKelvin)) || (color.IsHueSat() && device.HasCapability(models.DCColorHS)) { if (color.IsKelvin() && device.HasCapability(models.DCColorKelvin)) || (color.IsHueSat() && device.HasCapability(models.DCColorHS)) {
device.State.Color = color
}
if device.HasCapability(models.DCPower) { if device.HasCapability(models.DCPower) {
device.State.Power = power device.State.Power = power
} }
if device.HasCapability(models.DCIntensity) { if device.HasCapability(models.DCIntensity) {
device.State.Intensity = intensity device.State.Intensity = intensity
} }
}
updatedDevices = append(updatedDevices, device) updatedDevices = append(updatedDevices, device)
} }

Loading…
Cancel
Save