mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +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
|
||||
def is_on(self):
|
||||
"""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):
|
||||
"""Return current activity."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user