Call async added to hass super in Flo (#100453)

pull/100772/head
Joost Lekkerkerker 2023-09-23 21:05:53 +02:00 committed by GitHub
parent 781bc5b3bc
commit ba6a92756a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -103,6 +103,7 @@ class FloSwitch(FloEntity, SwitchEntity):
# pylint: disable-next=hass-missing-super-call
async def async_added_to_hass(self) -> None:
"""When entity is added to hass."""
await super().async_added_to_hass()
self.async_on_remove(self._device.async_add_listener(self.async_update_state))
async def async_set_mode_home(self):