Improve entity type hints [t] (#77883)
This commit is contained in:
parent
0c767bd0d3
commit
458001a06e
29 changed files with 67 additions and 60 deletions
|
@ -133,7 +133,7 @@ class TankUtilitySensor(SensorEntity):
|
|||
data.update(data.pop("lastReading", {}))
|
||||
return data
|
||||
|
||||
def update(self):
|
||||
def update(self) -> None:
|
||||
"""Set the device state and attributes."""
|
||||
data = self.get_data()
|
||||
self._state = round(data[SENSOR_TYPE], SENSOR_ROUNDING_PRECISION)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue