From 42699b7a60779ba9d56b4b8a600595b6c759fea7 Mon Sep 17 00:00:00 2001 From: Jeff Wilson Date: Wed, 19 Jul 2017 06:20:45 -0400 Subject: [PATCH] Report Harmony remote off if state is unknown (#8547) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add an optional extended description… --- homeassistant/components/remote/harmony.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/remote/harmony.py b/homeassistant/components/remote/harmony.py index 165bd0b9114..cdc6a7ac61f 100755 --- a/homeassistant/components/remote/harmony.py +++ b/homeassistant/components/remote/harmony.py @@ -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."""