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

pull/42260/head
TheJulianJES 2020-10-23 15:14:37 +02:00 committed by GitHub
parent 1340abb2fe
commit 7618fe6111
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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)