mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
[Pioneer AVR] Display the currently select input source as the media title (#1974)
This commit is contained in:
parent
393bd88091
commit
4a28be9a94
@ -164,6 +164,11 @@ class PioneerDevice(MediaPlayerDevice):
|
|||||||
"""List of available input sources."""
|
"""List of available input sources."""
|
||||||
return list(self._source_name_to_number.keys())
|
return list(self._source_name_to_number.keys())
|
||||||
|
|
||||||
|
@property
|
||||||
|
def media_title(self):
|
||||||
|
"""Title of current playing media."""
|
||||||
|
return self._selected_source
|
||||||
|
|
||||||
def turn_off(self):
|
def turn_off(self):
|
||||||
"""Turn off media player."""
|
"""Turn off media player."""
|
||||||
self.telnet_command("PF")
|
self.telnet_command("PF")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user