Skip to content

Commit 4f770bf

Browse files
committed
Fix - Hue
1 parent 081b544 commit 4f770bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libsrc/leddevice/dev_net/LedDevicePhilipsHue.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2646,14 +2646,14 @@ bool LedDevicePhilipsHue::switchOn()
26462646
if (_isOn)
26472647
{
26482648
Info(_log, "Device %s is ON", QSTRING_CSTR(_activeDeviceType));
2649-
emit isEnabledChanged(_isEnabled);
26502649
rc =true;
26512650
}
26522651
else
26532652
{
26542653
Warning(_log, "Failed switching device %s ON", QSTRING_CSTR(_activeDeviceType));
26552654
}
26562655
}
2656+
emit isOnChanged(_isOn);
26572657
}
26582658
return rc;
26592659
}
@@ -2717,6 +2717,7 @@ bool LedDevicePhilipsHue::switchOff()
27172717
rc = true;
27182718
}
27192719
}
2720+
emit isOnChanged(_isOn);
27202721
}
27212722
return rc;
27222723
}

0 commit comments

Comments
 (0)