panasonic_cc: 'Unexpected error creating device'
Getting an error while trying to setup the integration for the first time. The error appears after filling out the user account details. Running the most recent version of the integration and home assistant itself.
Logger: custom_components.panasonic_cc.config_flow
Source: custom_components/panasonic_cc/pcomfortcloud/session.py:223
Integration: Panasonic Comfort Cloud (documentation)
First occurred: 12:07:17 PM (1 occurrences)
Last logged: 12:07:17 PM
Unexpected error creating device
Traceback (most recent call last):
File "/config/custom_components/panasonic_cc/config_flow.py", line 60, in _create_device
devices = await self.hass.async_add_executor_job(api.get_devices)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/panasonic_cc/pcomfortcloud/session.py", line 223, in get_devices
'name': device['deviceName'],
KeyError: 'deviceName'
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 21 (6 by maintainers)
v1.0.35 now support unnamed devices
Find that very unlikely since the line 223 in session.py is
'name': device['deviceName'],and it is just getting the name of the HVAC from the API response. I could change that to'name': device['deviceName'] if 'deviceName' in device else 'Unknown Device',but the question is what else would fail…