mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
add a play_media function
This commit is contained in:
parent
dcf52332ca
commit
d454cad5a6
@ -450,6 +450,10 @@ class MediaPlayerDevice(Entity):
|
|||||||
""" Plays a YouTube media. """
|
""" Plays a YouTube media. """
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
|
def play_media(self, media_type, media_id):
|
||||||
|
""" Plays a piece of media. """
|
||||||
|
raise NotImplementedError()
|
||||||
|
|
||||||
# No need to overwrite these.
|
# No need to overwrite these.
|
||||||
@property
|
@property
|
||||||
def support_pause(self):
|
def support_pause(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user