mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Test for media_content_id KeyError
This commit is contained in:
parent
9f10ab5e7a
commit
a015df7b01
@ -166,8 +166,9 @@ class KodiDevice(MediaPlayerDevice):
|
|||||||
@property
|
@property
|
||||||
def media_content_id(self):
|
def media_content_id(self):
|
||||||
""" Content ID of current playing media. """
|
""" Content ID of current playing media. """
|
||||||
|
_LOGGER.debug(self._item)
|
||||||
if self._item is not None:
|
if self._item is not None:
|
||||||
return self._item['uniqueid']
|
return self._item.get('uniqueid', None)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def media_content_type(self):
|
def media_content_type(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user