Suppress spurious homekit warning about media player sources when the device is off (#37567)

This commit is contained in:
J. Nick Koston 2020-07-06 16:28:26 -05:00 committed by Paulus Schoutsen
parent a88ac1e1fc
commit 82693d9dca

View File

@ -431,7 +431,7 @@ class TelevisionMediaPlayer(HomeAccessory):
index = self.sources.index(source_name)
if self.char_input_source.value != index:
self.char_input_source.set_value(index)
else:
elif hk_state:
_LOGGER.warning(
"%s: Sources out of sync. Restart Home Assistant", self.entity_id,
)