Use shorthand attributes in Kodi (#99578)

pull/99658/head
Joost Lekkerkerker 2023-09-05 15:22:52 +02:00 committed by GitHub
parent d5ad01ffbe
commit c49f086790
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

@ -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."""