Report Harmony remote off if state is unknown (#8547)

Add an optional extended description…
This commit is contained in:
Jeff Wilson 2017-07-19 06:20:45 -04:00 committed by Pascal Vizeli
parent 6bc07298d3
commit 42699b7a60

View File

@ -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."""