Fix reading alarm state value
This commit is contained in:
parent
cbc4b16f8f
commit
9d41d56e0c
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ def handle_json_notification(payload: Any, body: Any) -> Tuple[str, str]:
|
|||
|
||||
description = body.get("AlarmDescription")
|
||||
subject = payload.get("Subject")
|
||||
state_value = payload.get("NewStateValue", "unknown")
|
||||
state_value = body.get("NewStateValue", "unknown")
|
||||
|
||||
if state_value == "ALARM":
|
||||
color = COLOR_ALARM
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue