mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-08 09:56:30 +00:00
Allow integration-specific media content types (#470)
As discussed in https://github.com/home-assistant/core/pull/34550 and https://github.com/home-assistant/core/pull/34412.
This commit is contained in:
parent
ddd0ef7d13
commit
48dd815594
@ -71,6 +71,10 @@ Required. Returns one of the defined constants from the below list that matches
|
|||||||
@property
|
@property
|
||||||
def media_content_type(self):
|
def media_content_type(self):
|
||||||
"""Content type of current playing media."""
|
"""Content type of current playing media."""
|
||||||
|
|
||||||
|
:::info
|
||||||
|
Using the integration name as the `media_content_type` is also acceptable within the `play_media` service if the integration provides handling which does not map to the defined constants.
|
||||||
|
:::
|
||||||
|
|
||||||
### Available device classes
|
### Available device classes
|
||||||
Optional. What type of media device is this. It will possibly map to google device types.
|
Optional. What type of media device is this. It will possibly map to google device types.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user