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

Make sure remote calls parent added
pull/84103/head
Joakim Plate 2022-12-16 15:25:05 +01:00 committed by GitHub
parent 80b3572627
commit 09a83b90ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

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(