diff --git a/custom_components/panasonic_cc/manifest.json b/custom_components/panasonic_cc/manifest.json index 5226d22..539dd1b 100644 --- a/custom_components/panasonic_cc/manifest.json +++ b/custom_components/panasonic_cc/manifest.json @@ -2,7 +2,7 @@ "domain": "panasonic_cc", "name": "Panasonic Comfort Cloud", "after_dependencies": ["http"], - "version": "1.0.46", + "version": "1.0.47", "config_flow": true, "documentation": "https://github.com/sockless-coding/panasonic_cc/", "dependencies": [], diff --git a/custom_components/panasonic_cc/pcomfortcloud/panasonicauthentication.py b/custom_components/panasonic_cc/pcomfortcloud/panasonicauthentication.py index df7e836..f4fb088 100644 --- a/custom_components/panasonic_cc/pcomfortcloud/panasonicauthentication.py +++ b/custom_components/panasonic_cc/pcomfortcloud/panasonicauthentication.py @@ -46,8 +46,8 @@ def __init__(self, client: aiohttp.ClientSession, settings: PanasonicSettings, a self._app_version = app_version async def authenticate(self, username: str, password: str): - - self._client.cookie_jar.clear() + + self._client.cookie_jar.clear_domain('authglb.digital.panasonic.com') # generate initial state and code_challenge code_verifier = generate_random_string(43)