diff --git a/homeassistant/components/kodi/media_player.py b/homeassistant/components/kodi/media_player.py index 9c69abc08c8..32ecbbed626 100644 --- a/homeassistant/components/kodi/media_player.py +++ b/homeassistant/components/kodi/media_player.py @@ -282,7 +282,7 @@ class KodiEntity(MediaPlayerEntity): """Initialize the Kodi entity.""" self._connection = connection self._kodi = kodi - self._unique_id = uid + self._attr_unique_id = uid self._device_id = None self._players = None self._properties = {} @@ -369,11 +369,6 @@ class KodiEntity(MediaPlayerEntity): if close: await self._connection.close() - @property - def unique_id(self): - """Return the unique id of the device.""" - return self._unique_id - @property def state(self) -> MediaPlayerState: """Return the state of the device."""