mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fixed universal media player templated source_select bug (issue #10981) and corrected typo in test_universal (#11746)
This commit is contained in:
parent
7617b8af52
commit
e72fefa74d
@ -154,7 +154,8 @@ class UniversalMediaPlayer(MediaPlayerDevice):
|
|||||||
if allow_override and service_name in self._cmds:
|
if allow_override and service_name in self._cmds:
|
||||||
yield from async_call_from_config(
|
yield from async_call_from_config(
|
||||||
self.hass, self._cmds[service_name],
|
self.hass, self._cmds[service_name],
|
||||||
variables=service_data, blocking=True)
|
variables=service_data, blocking=True,
|
||||||
|
validate_config=False)
|
||||||
return
|
return
|
||||||
|
|
||||||
active_child = self._child_state
|
active_child = self._child_state
|
||||||
|
@ -143,7 +143,7 @@ class MockMediaPlayer(media_player.MediaPlayerDevice):
|
|||||||
|
|
||||||
def select_source(self, source):
|
def select_source(self, source):
|
||||||
"""Set the input source."""
|
"""Set the input source."""
|
||||||
self._state = source
|
self._source = source
|
||||||
|
|
||||||
def clear_playlist(self):
|
def clear_playlist(self):
|
||||||
"""Clear players playlist."""
|
"""Clear players playlist."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user