Make sure super async_added_to_hass is called (#83493)

Make sure super added to hass is called
This commit is contained in:
Joakim Plate
2022-12-08 02:21:55 +01:00
committed by Paulus Schoutsen
parent ec7302ef1b
commit f4948e8f48

View File

@@ -101,6 +101,8 @@ class PhilipsTVMediaPlayer(
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(