mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
kodi platform: following jsonrpc-request version bump (0.3), let kodi file abstraction layer handle a collection item, url or file to play (#2398)
This commit is contained in:
parent
a57cd58675
commit
952b1a3e0c
@ -301,4 +301,4 @@ class KodiDevice(MediaPlayerDevice):
|
||||
|
||||
def play_media(self, media_type, media_id, **kwargs):
|
||||
"""Send the play_media command to the media player."""
|
||||
self._server.Player.Open({media_type: media_id}, {})
|
||||
self._server.Player.Open({"item": {"file": str(media_id)}})
|
||||
|
Loading…
x
Reference in New Issue
Block a user