mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Use shorthand attributes in Kodi (#99578)
This commit is contained in:
parent
d5ad01ffbe
commit
c49f086790
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user