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

@@ -11,8 +11,6 @@ from homeassistant.const import (
from .common import LocalTuyaEntity, async_setup_entry
_LOGGER = logging.getLogger(__name__)
from .const import (
CONF_OPTIONS,
CONF_OPTIONS_FRIENDLY,
@@ -31,6 +29,9 @@ def flow_schema(dps):
}
_LOGGER = logging.getLogger(__name__)
class LocaltuyaSelect(LocalTuyaEntity, SelectEntity):
"""Representation of a Tuya Enumeration."""
@@ -100,8 +101,9 @@ class LocaltuyaSelect(LocalTuyaEntity, SelectEntity):
await self._device.set_dp(option_value, self._dp_id)
def status_updated(self):
super().status_updated()
"""Device status was updated."""
super().status_updated()
state = self.dps(self._dp_id)
# Check that received status update for this entity.
@@ -116,6 +118,7 @@ class LocaltuyaSelect(LocalTuyaEntity, SelectEntity):
# Default value is the first option
def entity_default_value(self):
"""Return the first option as the default value for this entity type."""
return self._valid_options[0]