Turn on denonavr receiver when a source is changed (#44473)

This commit is contained in:
Anton Tolchanov 2020-12-28 17:12:49 +00:00 committed by GitHub
parent d95696e4f5
commit 13d6f5454d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -338,6 +338,9 @@ class DenonDevice(MediaPlayerEntity):
def select_source(self, source):
"""Select input source."""
# Ensure that the AVR is turned on, which is necessary for input
# switch to work.
self.turn_on()
return self._receiver.set_input_func(source)
def select_sound_mode(self, sound_mode):