Improve entity type hints [p] (#77871)
This commit is contained in:
parent
6f564e4f51
commit
474844744b
22 changed files with 130 additions and 107 deletions
|
@ -111,7 +111,7 @@ class PyLoadSensor(SensorEntity):
|
|||
"""Return the unit of measurement of this entity, if any."""
|
||||
return self._unit_of_measurement
|
||||
|
||||
def update(self):
|
||||
def update(self) -> None:
|
||||
"""Update state of sensor."""
|
||||
try:
|
||||
self.api.update()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue