From 3d2830278a8d72e4a5065d479512820f4e7f4ff8 Mon Sep 17 00:00:00 2001 From: schneefux Date: Tue, 9 Aug 2016 17:46:47 +0200 Subject: [PATCH] Hyperion: backwards compatibility (#2769) --- homeassistant/components/light/hyperion.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/homeassistant/components/light/hyperion.py b/homeassistant/components/light/hyperion.py index 7007f3dec34..8a03048d0bc 100644 --- a/homeassistant/components/light/hyperion.py +++ b/homeassistant/components/light/hyperion.py @@ -72,6 +72,11 @@ class Hyperion(Light): """Get the remote's active color.""" response = self.json_request({"command": "serverinfo"}) if response: + # workaround for outdated Hyperion + if "activeLedColor" not in response["info"]: + self._rgb_color = self._default_color + return + if response["info"]["activeLedColor"] == []: self._rgb_color = [0, 0, 0] else: