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

This commit is contained in:
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

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):