Fix Hyperion light not updating state (#115389)
This commit is contained in:
parent
cc2e0fd921
commit
18d6581523
2 changed files with 2 additions and 3 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue