Fixed editor line indentation

This commit is contained in:
Maarten Weyns
2020-12-15 20:11:34 +01:00
parent c28fac7010
commit a6e8f282c5

View File

@@ -284,8 +284,8 @@ class LocaltuyaLight(LocalTuyaEntity, LightEntity):
async def async_turn_on(self, **kwargs):
"""Turn on or control the light."""
states = {}
if not self.is_on:
states[self._dp_id] = True
if not self.is_on:
states[self._dp_id] = True
features = self.supported_features
brightness = None
if ATTR_EFFECT in kwargs and (features & SUPPORT_EFFECT):