mirror of
https://github.com/elisspace/core.git
synced 2026-10-02 07:19:59 +00:00
Improve entity type hints [r] (#77874)
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user