From 828b8810600522220f19415bb783768d87731a2d Mon Sep 17 00:00:00 2001 From: Joakim Plate Date: Thu, 25 Apr 2019 22:11:50 +0200 Subject: [PATCH] Add device classes to media player (#236) --- docs/entity_media_player.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/entity_media_player.md b/docs/entity_media_player.md index 650ace00..1d7700f1 100644 --- a/docs/entity_media_player.md +++ b/docs/entity_media_player.md @@ -17,6 +17,7 @@ sidebar_label: Media Player | source_list | list | None | The list of possible input sources for the media player. (This list should contain human readable names, suitible for frontend display) | media_image_url | string | None | URL that represents the current image. | media_image_remotely_accessible | boolean | False | Return `True` if property `media_image_url` is accessible outside of the home network. +| device_class | string | `None` | Type of binary sensor. ## Methods ### Select sound mode @@ -65,3 +66,9 @@ Required. Returns one of the defined constants from the below list that matches def media_content_type(self): """Content type of current playing media.""" +### Available device classes +Optional. What type of media device is this. It will possibly map to google device types. +| Value | Description +| ----- | ----------- +| tv | Device is a television type device. +| speaker | Device is speakers or stereo type device.