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