Hyperion: backwards compatibility (#2769)
This commit is contained in:
1 parent
3ac9aaf025
commit
3d2830278a
1 file changed
+5
@@ -72,6 +72,11 @@ class Hyperion(Light):
|
|||||||
"""Get the remote's active color."""
|
"""Get the remote's active color."""
|
||||||
response = self.json_request({"command": "serverinfo"})
|
response = self.json_request({"command": "serverinfo"})
|
||||||
if response:
|
if response:
|
||||||
|
# workaround for outdated Hyperion
|
||||||
|
if "activeLedColor" not in response["info"]:
|
||||||
|
self._rgb_color = self._default_color
|
||||||
|
return
|
||||||
|
|
||||||
if response["info"]["activeLedColor"] == []:
|
if response["info"]["activeLedColor"] == []:
|
||||||
self._rgb_color = [0, 0, 0]
|
self._rgb_color = [0, 0, 0]
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in new issue
Block a user