Fix polling of color for ZHA lights not updating (#42248)

This commit is contained in:
TheJulianJES authored and GitHub committed 2020-10-23 09:14:37 -04:00
1 parent 1340abb2fe
commit 7618fe6111
1 file changed
+2 -2
+2 -2
View File
@@ -457,8 +457,8 @@ class Light(BaseLight, ZhaEntity):
):
self._color_temp = results["color_temperature"]
color_x = results.get("color_x")
color_y = results.get("color_y")
color_x = results.get("current_x")
color_y = results.get("current_y")
if color_x is not None and color_y is not None:
self._hs_color = color_util.color_xy_to_hs(
float(color_x / 65535), float(color_y / 65535)