Hyperion: backwards compatibility (#2769)
This commit is contained in:
parent
3ac9aaf025
commit
3d2830278a
1 changed files with 5 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue