Skip to content

Fix KeyError in config_flow and update aioaquarea version pin#444

Open
tazz-apps wants to merge 2 commits intosockless-coding:masterfrom
tazz-apps:tazz-apps-patch-1
Open

Fix KeyError in config_flow and update aioaquarea version pin#444
tazz-apps wants to merge 2 commits intosockless-coding:masterfrom
tazz-apps:tazz-apps-patch-1

Conversation

@tazz-apps
Copy link
Copy Markdown

@tazz-apps tazz-apps commented Apr 16, 2026

  1. config_flow.py line 49: entry.data[KEY_DOMAIN] raises KeyError
    when iterating existing config entries that don't have the "domain"
    key. Changed to entry.data.get(KEY_DOMAIN) — returns None if
    missing, comparison evaluates to False, loop continues safely.

  2. manifest.json: aioaquarea==0.7.2 is an exact pin that conflicts
    with home-assistant-aquarea which requires >=1.0.6. When both
    integrations are installed, the resolver picks 0.7.2 and both fail.
    Additionally, 0.7.2 is broken against the current Panasonic API
    (NoneType error in __login_production). Loosened to >=1.0.6

Tested on HA 2026.3.0 with both integrations installed simultaneously.

config_flow.py line 49: `entry.data[KEY_DOMAIN]` raises KeyError
     when iterating existing config entries that don't have the "domain"
     key. Changed to `entry.data.get(KEY_DOMAIN)` — returns None if
     missing, comparison evaluates to False, loop continues safely.
`aioaquarea==0.7.2` is an exact pin that conflicts
     with home-assistant-aquarea which requires `>=1.0.6`. When both
     integrations are installed, the resolver picks 0.7.2 and both fail.
     Additionally, 0.7.2 is broken against the current Panasonic API
     (`NoneType` error in `__login_production`). Loosened to `>=1.0.6`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant