Home Connect integration broken?

I’m actively using the home connect integration.

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

Help?

got the same problem here

For me too

Nah - no bad, I just looked at the breaking changes of .4 and didn’t see HomeConnect mentioned.

  1. roll back and see if the problem goes away
  2. report a bug
    Issues · home-assistant/core (github.com)

Edit - There was a bug logged on the Beta:
Home Connect stop working on beta · Issue #90631 · home-assistant/core (github.com)

I just

I actually just did… :man_facepalming:

Home Connect

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.

(@stickpin - #88801) (documentation)

I didn’t want to go back…

1 Like

That did the trick…

Guys, if you are struggling, turn the devices on, click the phone button (just in case) and restart the integration… perfect!

2 Likes

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.

1 Like

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? :sweat_smile:

I just upgraded to 2023.4.1 and my integration was loaded without issues.