Improve entity type hints [t] (#77883)
This commit is contained in:
parent
0c767bd0d3
commit
458001a06e
29 changed files with 67 additions and 60 deletions
|
@ -160,6 +160,6 @@ class TellstickSensor(SensorEntity):
|
|||
self._attr_native_unit_of_measurement = sensor_info.unit or None
|
||||
self._attr_name = f"{name} {sensor_info.name}"
|
||||
|
||||
def update(self):
|
||||
def update(self) -> None:
|
||||
"""Update tellstick sensor."""
|
||||
self._attr_native_value = self._tellcore_sensor.value(self._datatype).value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue