mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
Add code comment in SamsungTV (#68841)
This commit is contained in:
parent
df4ddc6491
commit
f053fc9167
@ -459,6 +459,9 @@ class SamsungTVWSBridge(
|
||||
|
||||
async def async_is_on(self) -> bool:
|
||||
"""Tells if the TV is on."""
|
||||
# On some TVs, opening a websocket turns on the TV
|
||||
# so first check "PowerState" if device_info has it
|
||||
# then fallback to default, trying to open a websocket
|
||||
if self._get_device_spec("PowerState") is not None:
|
||||
LOGGER.debug("Checking if TV %s is on using device info", self.host)
|
||||
# Ensure we get an updated value
|
||||
|
Loading…
x
Reference in New Issue
Block a user