Improve entity type hints [t] (#77883)

This commit is contained in:
epenet 2022-09-06 13:35:52 +02:00 committed by GitHub
parent 0c767bd0d3
commit 458001a06e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 67 additions and 60 deletions

View file

@ -350,7 +350,7 @@ class TibberSensorElPrice(TibberSensor):
self._device_name = self._home_name
async def async_update(self):
async def async_update(self) -> None:
"""Get the latest data and updates the states."""
now = dt_util.now()
if (
@ -448,7 +448,7 @@ class TibberSensorRT(TibberSensor, CoordinatorEntity["TibberRtDataCoordinator"])
self._attr_native_unit_of_measurement = tibber_home.currency
@property
def available(self):
def available(self) -> bool:
"""Return True if entity is available."""
return self._tibber_home.rt_subscription_running