Improve entity type hints [r] (#77874)
This commit is contained in:
parent
7198273a42
commit
6f564e4f51
28 changed files with 97 additions and 83 deletions
|
@ -63,7 +63,7 @@ class RandomSensor(BinarySensorEntity):
|
|||
"""Return the sensor class of the sensor."""
|
||||
return self._device_class
|
||||
|
||||
async def async_update(self):
|
||||
async def async_update(self) -> None:
|
||||
"""Get new state and update the sensor's state."""
|
||||
|
||||
self._state = bool(getrandbits(1))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue