mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Suppress spurious homekit warning about media player sources when the device is off (#37567)
This commit is contained in:
parent
706bc4c307
commit
c989f6dc09
@ -431,7 +431,7 @@ class TelevisionMediaPlayer(HomeAccessory):
|
|||||||
index = self.sources.index(source_name)
|
index = self.sources.index(source_name)
|
||||||
if self.char_input_source.value != index:
|
if self.char_input_source.value != index:
|
||||||
self.char_input_source.set_value(index)
|
self.char_input_source.set_value(index)
|
||||||
else:
|
elif hk_state:
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
"%s: Sources out of sync. Restart Home Assistant", self.entity_id,
|
"%s: Sources out of sync. Restart Home Assistant", self.entity_id,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user