Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/entity_media_player.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ sidebar_label: Media Player
:::info Incomplete
This entry is incomplete. Contribution welcome.
:::
A media player entity controls a media player. Derive a platform entity from [`homeassistant.components.media_player.MediaPlayerEntity`](https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/media_player/__init__.py).

## Properties

Expand All @@ -27,7 +28,7 @@ Properties should always only return information from memory and not do I/O (lik
### Select sound mode
Optional. Switch the sound mode of the media player.

class MyMediaPlayer(MediaPlayerDevice):
class MyMediaPlayer(MediaPlayerEntity):
# Implement one of these methods.

def select_sound_mode(self, sound_mode):
Expand All @@ -39,7 +40,7 @@ Optional. Switch the sound mode of the media player.
### Select source
Optional. Switch the selected input source for the media player.

class MyMediaPlayer(MediaPlayerDevice):
class MyMediaPlayer(MediaPlayerEntity):
# Implement one of these methods.

def select_source(self, source):
Expand Down