Fix polling of color for ZHA lights not updating (#42248)
parent
1340abb2fe
commit
7618fe6111
|
@ -457,8 +457,8 @@ class Light(BaseLight, ZhaEntity):
|
||||||
):
|
):
|
||||||
self._color_temp = results["color_temperature"]
|
self._color_temp = results["color_temperature"]
|
||||||
|
|
||||||
color_x = results.get("color_x")
|
color_x = results.get("current_x")
|
||||||
color_y = results.get("color_y")
|
color_y = results.get("current_y")
|
||||||
if color_x is not None and color_y is not None:
|
if color_x is not None and color_y is not None:
|
||||||
self._hs_color = color_util.color_xy_to_hs(
|
self._hs_color = color_util.color_xy_to_hs(
|
||||||
float(color_x / 65535), float(color_y / 65535)
|
float(color_x / 65535), float(color_y / 65535)
|
||||||
|
|
Loading…
Reference in New Issue