mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
Hyperion: backwards compatibility (#2769)
This commit is contained in:
committed by
Paulus Schoutsen
parent
3ac9aaf025
commit
3d2830278a
@@ -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