mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add game and app media types (#22459)
* Added game and app media types * Changed media type to game from music * Removed app type as it is not used yet
This commit is contained in:
parent
a69080ba73
commit
ece9c62ee8
@ -38,6 +38,7 @@ MEDIA_TYPE_CHANNEL = 'channel'
|
|||||||
MEDIA_TYPE_PLAYLIST = 'playlist'
|
MEDIA_TYPE_PLAYLIST = 'playlist'
|
||||||
MEDIA_TYPE_IMAGE = 'image'
|
MEDIA_TYPE_IMAGE = 'image'
|
||||||
MEDIA_TYPE_URL = 'url'
|
MEDIA_TYPE_URL = 'url'
|
||||||
|
MEDIA_TYPE_GAME = 'game'
|
||||||
|
|
||||||
SERVICE_CLEAR_PLAYLIST = 'clear_playlist'
|
SERVICE_CLEAR_PLAYLIST = 'clear_playlist'
|
||||||
SERVICE_PLAY_MEDIA = 'play_media'
|
SERVICE_PLAY_MEDIA = 'play_media'
|
||||||
|
@ -12,7 +12,7 @@ import voluptuous as vol
|
|||||||
from homeassistant.components.media_player import (
|
from homeassistant.components.media_player import (
|
||||||
ENTITY_IMAGE_URL, MediaPlayerDevice)
|
ENTITY_IMAGE_URL, MediaPlayerDevice)
|
||||||
from homeassistant.components.media_player.const import (
|
from homeassistant.components.media_player.const import (
|
||||||
MEDIA_TYPE_MUSIC, SUPPORT_SELECT_SOURCE, SUPPORT_STOP, SUPPORT_TURN_OFF,
|
MEDIA_TYPE_GAME, SUPPORT_SELECT_SOURCE, SUPPORT_STOP, SUPPORT_TURN_OFF,
|
||||||
SUPPORT_TURN_ON)
|
SUPPORT_TURN_ON)
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_COMMAND, ATTR_ENTITY_ID, CONF_HOST, CONF_NAME, CONF_REGION,
|
ATTR_COMMAND, ATTR_ENTITY_ID, CONF_HOST, CONF_NAME, CONF_REGION,
|
||||||
@ -328,8 +328,7 @@ class PS4Device(MediaPlayerDevice):
|
|||||||
@property
|
@property
|
||||||
def media_content_type(self):
|
def media_content_type(self):
|
||||||
"""Content type of current playing media."""
|
"""Content type of current playing media."""
|
||||||
# No MEDIA_TYPE_GAME attr as of 0.90.
|
return MEDIA_TYPE_GAME
|
||||||
return MEDIA_TYPE_MUSIC
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def media_image_url(self):
|
def media_image_url(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user