Fixing up style issues

This commit is contained in:
sibowler
2021-12-13 06:08:53 +11:00
committed by rospogrigio
parent fad7e0b1ac
commit 61896605b8
3 changed files with 13 additions and 11 deletions

View File

@@ -19,8 +19,9 @@ CONF_MAX_VALUE = "max_value"
DEFAULT_MIN = 0
DEFAULT_MAX = 100000
def flow_schema(dps):
# """Return schema used in config flow."""
"""Return schema used in config flow."""
return {
vol.Optional(CONF_MIN_VALUE, default=DEFAULT_MIN): vol.All(
vol.Coerce(float), vol.Range(min=-1000000.0, max=1000000.0),
@@ -59,7 +60,6 @@ class LocaltuyaNumber(LocalTuyaEntity, NumberEntity):
@property
def min_value(self) -> float:
"""Return the minimum value."""
return self._minValue
@property
@@ -76,7 +76,6 @@ class LocaltuyaNumber(LocalTuyaEntity, NumberEntity):
"""Update the current value."""
await self._device.set_dp(value, self._dp_id)
def status_updated(self):
"""Device status was updated."""
state = self.dps(self._dp_id)