Fix Hyperion light not updating state (#115389)
parent
5194faa8fd
commit
7eb6b2ca33
|
@ -191,13 +191,13 @@ class HyperionVisiblePrioritySensor(HyperionSensor):
|
|||
if priority[KEY_COMPONENTID] == "COLOR":
|
||||
state_value = priority[KEY_VALUE][KEY_RGB]
|
||||
else:
|
||||
state_value = priority[KEY_OWNER]
|
||||
state_value = priority.get(KEY_OWNER)
|
||||
|
||||
attrs = {
|
||||
"component_id": priority[KEY_COMPONENTID],
|
||||
"origin": priority[KEY_ORIGIN],
|
||||
"priority": priority[KEY_PRIORITY],
|
||||
"owner": priority[KEY_OWNER],
|
||||
"owner": priority.get(KEY_OWNER),
|
||||
}
|
||||
|
||||
if priority[KEY_COMPONENTID] == "COLOR":
|
||||
|
|
|
@ -159,7 +159,6 @@ async def test_visible_effect_state_changes(hass: HomeAssistant) -> None:
|
|||
KEY_ACTIVE: True,
|
||||
KEY_COMPONENTID: "COLOR",
|
||||
KEY_ORIGIN: "System",
|
||||
KEY_OWNER: "System",
|
||||
KEY_PRIORITY: 250,
|
||||
KEY_VALUE: {KEY_RGB: [0, 0, 0]},
|
||||
KEY_VISIBLE: True,
|
||||
|
|
Loading…
Reference in New Issue