Skip to content

Commit

Permalink
improve storage migration
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsfaber committed Nov 4, 2023
1 parent f830c51 commit a5fa6fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/alarmo/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def migrate_automation(data):

if old_major_version <= 5 or (old_major_version == 6 and old_minor_version < 2):
data["config"] = attr.asdict(Config(
**data["config"],
**omit(data["config"], ["code_mode_change_required"]),
code_mode_change_required=data["config"]["code_arm_required"]
))

Expand Down

0 comments on commit a5fa6fb

Please sign in to comment.