Fix review comment.
This commit is contained in:
@@ -188,8 +188,9 @@ class LocaltuyaLight(LocalTuyaEntity, LightEntity):
|
|||||||
"""Return the hs color value."""
|
"""Return the hs color value."""
|
||||||
if self.is_color_mode:
|
if self.is_color_mode:
|
||||||
return self._hs
|
return self._hs
|
||||||
if self.supported_features & SUPPORT_COLOR and not self.has_config(
|
if (
|
||||||
CONF_COLOR_TEMP
|
self.supported_features & SUPPORT_COLOR
|
||||||
|
and not self.supported_features & SUPPORT_COLOR_TEMP
|
||||||
):
|
):
|
||||||
return [0, 0]
|
return [0, 0]
|
||||||
return None
|
return None
|
||||||
|
Reference in New Issue
Block a user