Fixing formatting/style errors

This commit is contained in:
sibowler
2022-07-14 08:59:54 +10:00
parent 06968d8a9c
commit f85b25dea9
7 changed files with 46 additions and 28 deletions

View File

@@ -52,9 +52,9 @@ class LocaltuyaBinarySensor(LocalTuyaEntity, BinarySensorEntity):
return self._config.get(CONF_DEVICE_CLASS)
def status_updated(self):
"""Device status was updated."""
super().status_updated()
"""Device status was updated."""
state = str(self.dps(self._dp_id)).lower()
if state == self._config[CONF_STATE_ON].lower():
self._is_on = True
@@ -67,7 +67,7 @@ class LocaltuyaBinarySensor(LocalTuyaEntity, BinarySensorEntity):
# No need to restore state for a sensor
async def restore_state_when_connected(self):
"""Do nothing for a sensor"""
"""Do nothing for a sensor."""
return