Skip to content

Commit

Permalink
Warn users only when old config is actually used (#4691)
Browse files Browse the repository at this point in the history
  • Loading branch information
agners authored Nov 10, 2023
1 parent 7887018 commit 68da328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supervisor/addons/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def _migrate(config: dict[str, Any]):

# 2023-10 "config" became "homeassistant" so /config can be used for addon's public config
volumes = [RE_VOLUME.match(entry) for entry in config.get(ATTR_MAP, [])]
if any(volume and volume.group(1) for volume in volumes):
if any(volume and volume.group(1) == MAP_CONFIG for volume in volumes):
if any(
volume
and volume.group(1) in {MAP_ADDON_CONFIG, MAP_HOMEASSISTANT_CONFIG}
Expand Down

0 comments on commit 68da328

Please sign in to comment.