Skip to content

Commit

Permalink
fix migration error
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasJoKuJonas committed May 8, 2024
1 parent 20b88c0 commit 78748c1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions custom_components/webuntis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@ async def async_migrate_entry(hass, config_entry: ConfigEntry):
}

for notify_key, notify_value in options["notify_config"].items():
options["notify_config"][notify_key]["options"][
options["notify_config"][notify_key]["options"].index("lesson change")
] = "lesson_change"
if "lesson change" in options["notify_config"][notify_key]["options"]:
options["notify_config"][notify_key]["options"][
options["notify_config"][notify_key]["options"].index("lesson change")
] = "lesson_change"

for key in [
"notify_entity_id",
Expand Down

0 comments on commit 78748c1

Please sign in to comment.