Skip to content

Commit

Permalink
fixed index error
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasJoKuJonas committed Oct 1, 2023
1 parent beba250 commit 57ad199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/webuntis/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def get_notification(updated_items, notify_list):

elif change == "rooms":
try:
message += f"Change (Room): {lesson_old['rooms']['name']} -> {lesson['rooms']['name']}"
message += f"Change (Room): {lesson_old['rooms'][0]['name']} -> {lesson['rooms'][0]['name']}"
except KeyError:
pass

Expand Down

0 comments on commit 57ad199

Please sign in to comment.