Make sure super async_added_to_hass is called (#83493)

Make sure super added to hass is called
pull/83551/head
Joakim Plate 2022-12-08 02:21:55 +01:00 committed by GitHub
parent c2fa1bdd49
commit 2ca7d0dd97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

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(