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 GitHub
parent c2fa1bdd49
commit 2ca7d0dd97

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(