Improve entity type hints [r] (#77874)

This commit is contained in:
epenet 2022-09-06 09:47:35 +02:00 committed by GitHub
parent 7198273a42
commit 6f564e4f51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 97 additions and 83 deletions

View file

@ -119,7 +119,7 @@ class RachioControllerOnlineBinarySensor(RachioControllerBinarySensor):
self.async_write_ha_state()
async def async_added_to_hass(self):
async def async_added_to_hass(self) -> None:
"""Subscribe to updates."""
self._state = self._controller.init_data[KEY_STATUS] == STATUS_ONLINE
@ -165,7 +165,7 @@ class RachioRainSensor(RachioControllerBinarySensor):
self.async_write_ha_state()
async def async_added_to_hass(self):
async def async_added_to_hass(self) -> None:
"""Subscribe to updates."""
self._state = self._controller.init_data[KEY_RAIN_SENSOR_TRIPPED]