Improve entity type hints [o] (#77826)
This commit is contained in:
parent
d6ca3544ee
commit
ea71a462d6
20 changed files with 68 additions and 58 deletions
|
@ -75,7 +75,7 @@ class CurrentEnergyUsageSensor(SensorEntity):
|
|||
"""Return the state of the sensor."""
|
||||
return self._state
|
||||
|
||||
def update(self):
|
||||
def update(self) -> None:
|
||||
"""Fetch new state data for the sensor."""
|
||||
try:
|
||||
last_read = self.meter.last_read()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue