From caf0b57dfa38dafc048d1fe5a6cd8f7369128259 Mon Sep 17 00:00:00 2001 From: tazz-apps Date: Fri, 17 Apr 2026 01:02:10 +0200 Subject: [PATCH 1/2] Fix key access method for domain check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- custom_components/panasonic_cc/config_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/panasonic_cc/config_flow.py b/custom_components/panasonic_cc/config_flow.py index 8402645..05c39ae 100644 --- a/custom_components/panasonic_cc/config_flow.py +++ b/custom_components/panasonic_cc/config_flow.py @@ -46,7 +46,7 @@ async def _create_entry(self, username, password): """Register new entry.""" # Check if ip already is registered for entry in self._async_current_entries(): - if entry.data[KEY_DOMAIN] == PANASONIC_DOMAIN: + if entry.data.get(KEY_DOMAIN) == PANASONIC_DOMAIN: return self.async_abort(reason="already_configured") return self.async_create_entry(title="", data={ From d8f76c03346f4c2b54a02380e463641409d83f6f Mon Sep 17 00:00:00 2001 From: tazz-apps Date: Fri, 17 Apr 2026 01:09:27 +0200 Subject: [PATCH 2/2] Update requirements for aioaquarea version `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`. --- custom_components/panasonic_cc/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/panasonic_cc/manifest.json b/custom_components/panasonic_cc/manifest.json index 8e0388e..595ed91 100644 --- a/custom_components/panasonic_cc/manifest.json +++ b/custom_components/panasonic_cc/manifest.json @@ -10,6 +10,6 @@ "integration_type": "hub", "iot_class": "cloud_polling", "issue_tracker": "https://github.com/sockless-coding/panasonic_cc/issues", - "requirements": ["aiohttp","aio-panasonic-comfort-cloud==2025.5.1","aioaquarea==0.7.2"], + "requirements": ["aiohttp","aio-panasonic-comfort-cloud==2025.5.1","aioaquarea>=1.0.6"], "quality_scale": "silver" }