Netatmo integration suddenly failed to set up

Hi, I’ve been using Netatmo integration to control my Netatmo outdoor cameras, but since a couple of hours ago it suddenly stopped working.
From the integrations section, I can see that the integration failed to set up (and it stays like that even if I reload it or reboot the system).
This is what I see from the logs:

Logger: homeassistant.config_entries
Source: components/netatmo/data_handler.py:199
First occurred: 20:05:07 (3 occurrences)
Last logged: 20:06:39

Error setting up entry Netatmo videocamere for netatmo
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/__init__.py", line 164, in async_setup_entry
    await data_handler.async_setup()
  File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 156, in async_setup
    await self.async_dispatch()
  File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 280, in async_dispatch
    await self.subscribe(HOME, signal_home, None, home_id=home.entity_id)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 243, in subscribe
    await self.async_fetch_data(signal_name)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 199, in async_fetch_data
    await getattr(self.account, self.publisher[signal_name].method)(
  File "/usr/local/lib/python3.10/site-packages/pyatmo/account.py", line 78, in async_update_status
    await self.homes[home_id].update(raw_data)
  File "/usr/local/lib/python3.10/site-packages/pyatmo/home.py", line 132, in update
    self.rooms[room["id"]].update(room)
KeyError: '0'

and this:

Logger: homeassistant.config_entries
Source: helpers/entity_component.py:166
First occurred: 20:06:31 (14 occurrences)
Last logged: 20:06:38

Error setting up entry Netatmo videocamere for cover
Error setting up entry Netatmo videocamere for light
Error setting up entry Netatmo videocamere for select
Error setting up entry Netatmo videocamere for sensor
Error setting up entry Netatmo videocamere for switch
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 409, in async_setup_entry
    return await component.async_setup_entry(entry)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 166, in async_setup_entry
    raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!

I didn’t change anything and I’ve also tried to restore a backup where I’m 100% sure everything worked properly, but nothing changed.

Does anybody know what’s going on?

Solution found here:
https://community.home-assistant.io/t/problem-with-netatmo-bticino-integration-error-setting-up-entry-home-assistant-cloud-for-netatmo/514764/3

After an update, all the devices weren’t assigned to a room: assigning a room to them and reloading the integration from HA made everything work again.