Improve entity type hints [b] (#77012)

This commit is contained in:
epenet 2022-08-19 09:54:13 +02:00 committed by GitHub
parent dd109839b9
commit dedf063e43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 73 additions and 59 deletions

View file

@ -58,7 +58,7 @@ class BloomSkySensor(BinarySensorEntity):
self._attr_unique_id = f"{self._device_id}-{sensor_name}"
self._attr_device_class = SENSOR_TYPES.get(sensor_name)
def update(self):
def update(self) -> None:
"""Request an update from the BloomSky API."""
self._bloomsky.refresh_devices()