panasonic_cc: 403 Forbidden

suddenly stopped working with 403 code. the mobile app still works fine.

2021-06-08 09:21:57 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry  for panasonic_cc
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/config/custom_components/panasonic_cc/__init__.py", line 79, in async_setup_entry
    devices = await hass.async_add_executor_job(api.get_devices)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.8/site-packages/pcomfortcloud/session.py", line 172, in get_devices
    self.login()
  File "/usr/local/lib/python3.8/site-packages/pcomfortcloud/session.py", line 99, in login
    self._create_token()
  File "/usr/local/lib/python3.8/site-packages/pcomfortcloud/session.py", line 132, in _create_token
    raise ResponseError(response.status_code, response.text)
pcomfortcloud.session.ResponseError: Invalid response, status code: 403 - Data: <html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
</body>
</html>

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 18 (3 by maintainers)

Most upvoted comments

replace the manifest.json and restart the home assistant

{
    "domain": "panasonic_cc",
    "name": "Panasonic Comfort Cloud",
    "version": "1.0.28",
    "config_flow": true,
    "documentation": "https://github.com/sockless-coding/panasonic_cc/",
    "dependencies": [],
    "codeowners": ["sockless-coding"],
    "requirements": ["git+https://github.com/k1ng440/python-panasonic-comfort-cloud.git@patch-1#pcomfortcloud==0.0.21"]
}

edit: if restarting doesn’t work. remove the integration and redo from config -> integrations

I’ve released v1.0.30 it should fix the issue.