Skip to content

Commit

Permalink
fix: error when querying own response fixes #135
Browse files Browse the repository at this point in the history
  • Loading branch information
fwmarcel committed May 11, 2024
1 parent dec762c commit c4ab60b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/divera/divera.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def get_answered_state(self, alarm):

for answer_state in answered.values():
if isinstance(answer_state, dict):
if ucr_id in answer_state:
if str(ucr_id) in answer_state:
return self.get_state_name_by_id(answer_state)
elif isinstance(answer_state, list):
for state_id in answer_state:
Expand Down

0 comments on commit c4ab60b

Please sign in to comment.