mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Report Harmony remote off if state is unknown (#8547)
Add an optional extended description…
This commit is contained in:
parent
6bc07298d3
commit
42699b7a60
@ -174,7 +174,7 @@ class HarmonyRemote(remote.RemoteDevice):
|
|||||||
@property
|
@property
|
||||||
def is_on(self):
|
def is_on(self):
|
||||||
"""Return False if PowerOff is the current activity, otherwise True."""
|
"""Return False if PowerOff is the current activity, otherwise True."""
|
||||||
return self._current_activity != 'PowerOff'
|
return self._current_activity not in [None, 'PowerOff']
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
"""Return current activity."""
|
"""Return current activity."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user