From afb3a52b5be7fc492ea3880cac519a826127d2f8 Mon Sep 17 00:00:00 2001 From: Leothlon Date: Thu, 15 Nov 2018 18:49:10 +0100 Subject: [PATCH] Fixed bug for receivers without support for new command (#18478) * Fixed bug for receivers without support for new command * removed extra parenthesis --- homeassistant/components/media_player/onkyo.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/media_player/onkyo.py b/homeassistant/components/media_player/onkyo.py index 367ad2aa972..5ff54201b3c 100644 --- a/homeassistant/components/media_player/onkyo.py +++ b/homeassistant/components/media_player/onkyo.py @@ -220,6 +220,9 @@ class OnkyoDevice(MediaPlayerDevice): [i for i in current_source_tuples[1]]) self._muted = bool(mute_raw[1] == 'on') self._volume = volume_raw[1] / self._max_volume + + if not hdmi_out_raw: + return self._attributes["video_out"] = ','.join(hdmi_out_raw[1]) @property