mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
Fix polling of color for ZHA lights not updating (#42248)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user