Closed bogdanioanliviu closed 9 months ago
Looks like oic is not installed, can you try pip install oic
, see the python documentation
I have the same problem, running home assistant in Docker. I reverted back to previous version.
`2024-02-08 13:55:53.489 ERROR (MainThread) [custom_components.daikin_residential.config_flow] Failed to initialize DaikinApi: client_cert has a type of <class 'NoneType'>, expected any of (<class 'str'>, <class 'tuple'>).
2024-02-08 13:55:56.594 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Daikin for daikin_residential Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 442, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/daikin_residential/init.py", line 84, in async_setup_entry daikin_api = DaikinApi(hass, entry) ^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/daikin_residential/daikin_api.py", line 54, in init self.openIdClient = Client(client_id=self.openIdClientId, config=configuration) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/oic/oic/init.py", line 354, in init self.settings = settings or OicClientSettings() ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/oic/utils/settings.py", line 96, in init super().init( File "/usr/local/lib/python3.12/site-packages/oic/utils/settings.py", line 51, in init self.client_cert = client_cert ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/oic/utils/settings.py", line 73, in setattr raise SettingsException( oic.utils.settings.SettingsException: client_cert has a type of <class 'NoneType'>, expected any of (<class 'str'>, <class 'tuple'>).`
Looks like oic is not installed, can you try
pip install oic
, see the python
Y will try tomorrow
A new version of HA 2024.2.1 was release. This version fix the error for this integration. I think this can be closed. Thank you
With the version of HA 2024.2.0 core this integration fails with the following error:
I think this is do to HA now using python 3.12. No diagnostics logs as the add-on it's not starting.