I know I did bad but I just installed the 2023.4 version of HA and now I get these messages on the log:
Logger: homeassistant.config_entries
Source: components/home_connect/api.py:163
First occurred: 23:05:15 (3 occurrences)
Last logged: 23:15:05
Error setting up entry Home Connect for home_connect
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/home_connect/__init__.py", line 269, in async_setup_entry
await update_all_devices(hass, entry)
File "/usr/src/homeassistant/homeassistant/components/home_connect/__init__.py", line 293, in update_all_devices
await hass.async_add_executor_job(hc_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 "/usr/src/homeassistant/homeassistant/components/home_connect/api.py", line 99, in get_devices
{CONF_DEVICE: device, CONF_ENTITIES: device.get_entity_info()}
File "/usr/src/homeassistant/homeassistant/components/home_connect/api.py", line 353, in get_entity_info
program_switches = self.get_program_switches()
File "/usr/src/homeassistant/homeassistant/components/home_connect/api.py", line 163, in get_program_switches
return [{ATTR_DEVICE: self, "program_name": p} for p in programs]
TypeError: 'NoneType' object is not iterable
Not really a breaking change, but as of now, only program entities are created for the programs your device supports. You might need to manually remove old/existing entities that are no longer provided.
In the 2023.4 release notes Home Connect breaking change is actually mentioned (2023.4: Custom template macros, and many more new entity dialogs! - Home Assistant). I will ask Frenck to correct the notes, but in general:
If you want to get rid of the programs that are not supported by the appliance, I would suggest completely reconfiguring the integration. Meaning removing and adding Home Connect Integration once again.
Please pay attention, that due to the limitation on the Home Connect, the appliances should be ON during the initial integration configuration to retrieve the list of the available programs. This action is required only once during the initial setup.
I just restarted my instance because of a component upgrade and the Home Connect integration says it can’t find the entities which I had installed last night… is this going to happen often?