Run pylint from tox (#243)

This commit is contained in:
Pierre Ståhl
2020-12-17 09:26:55 +01:00
committed by GitHub
parent 3cf15f216e
commit f72cbc0b5a
9 changed files with 132 additions and 35 deletions

View File

@@ -188,7 +188,7 @@ class LocaltuyaLight(LocalTuyaEntity, LightEntity):
"""Return the hs color value."""
if self.is_color_mode:
return self._hs
elif self.supported_features & SUPPORT_COLOR:
if self.supported_features & SUPPORT_COLOR:
return [0, 0]
return None