LED color status in HA fixed

Bug was preventing HA from showing the correct LED color.
This commit is contained in:
imonlinux
2025-12-11 11:39:21 -08:00
committed by GitHub
parent 186f33f1a1
commit 56572d4b33
+1
View File
@@ -353,6 +353,7 @@ class MqttController(EventHandler):
light_state = {
"state": "ON" if data.get("effect") != "off" else "OFF",
"color_mode": "rgb",
"brightness": int(data.get("brightness", 0.5) * 255),
"color": {
"r": data.get("color")[0],