mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Hyperion: backwards compatibility (#2769)
This commit is contained in:
parent
3ac9aaf025
commit
3d2830278a
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user