Improve entity type hints [r] (#77874)
This commit is contained in:
parent
7198273a42
commit
6f564e4f51
28 changed files with 97 additions and 83 deletions
|
@ -70,7 +70,7 @@ class RippleSensor(SensorEntity):
|
|||
"""Return the state attributes of the sensor."""
|
||||
return {ATTR_ATTRIBUTION: ATTRIBUTION}
|
||||
|
||||
def update(self):
|
||||
def update(self) -> None:
|
||||
"""Get the latest state of the sensor."""
|
||||
if (balance := get_balance(self.address)) is not None:
|
||||
self._state = balance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue