Make sure philips_hs remote entity calls parent added (#84082)

Make sure remote calls parent added
This commit is contained in:
Joakim Plate
2022-12-16 15:25:05 +01:00
committed by GitHub
parent 80b3572627
commit 09a83b90ea

View File

@@ -58,6 +58,8 @@ class PhilipsTVRemote(CoordinatorEntity[PhilipsTVDataUpdateCoordinator], RemoteE
async def async_added_to_hass(self) -> None:
"""Handle being added to hass."""
await super().async_added_to_hass()
if (entry := self.registry_entry) and entry.device_id:
self.async_on_remove(
self._turn_on.async_register(