Integration Legrand

Hello,
I try to integrate the LEGRAND integration, and I systematically get the configuration failure error.
When I go to the logs, I have the following logs

Logger: homeassistant.config_entries
Source: components/netatmo/data_handler.py:199
First occurred: 13:59:08 (3 occurrences)
Last logged: 14:47:29

Error setting up entry Home Assistant Cloud for netatmo
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 365, 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 151, in async_setup
await self.subscribe(ACCOUNT, ACCOUNT, None)
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 69, in async_update_topology
self.process_topology()
File “/usr/local/lib/python3.10/site-packages/pyatmo/account.py”, line 58, in process_topology
self.homes[home_id] = Home(self.auth, raw_data=home)
File “/usr/local/lib/python3.10/site-packages/pyatmo/home.py”, line 48, in init
self.modules = {
File “/usr/local/lib/python3.10/site-packages/pyatmo/home.py”, line 49, in
module[“id”]: getattr(modules, module[“type”])(
AttributeError: module ‘pyatmo.modules’ has no attribute ‘NLD’


does anyone have a clue, because i’m desperate

my configuration
Home Assistant 2022.10.4
Supervisor 2022.10.0
Operating System 9.2
Interface utilisateur : 20221010.0 - latest

Please wait for next patch release as it should include a fix for this.

Hello. Cool. I’m waiting for it so

The latest beta includes a fix.

when the release will be deploy ?
Or how to join the beta channel ?

This follows the official HA release schedule. Next release is on Wednesday, the beta is currently running. Please check the documentation on how exactly to do this as it depends on your installation type.

1 Like

I just upgrade my home assistant and I have the same error


my home assistant
Home Assistant 2022.11.1
Supervisor 2022.10.2
Operating System 9.3
Interface utilisateur : 20221102.1 - latest


Logger: homeassistant.config_entries
Source: components/netatmo/data_handler.py:199
First occurred: 20:01:22 (1 occurrences)
Last logged: 20:01:22

Error setting up entry Home Assistant Cloud for netatmo
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 365, 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 151, in async_setup
await self.subscribe(ACCOUNT, ACCOUNT, None)
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 69, in async_update_topology
self.process_topology()
File “/usr/local/lib/python3.10/site-packages/pyatmo/account.py”, line 58, in process_topology
self.homes[home_id] = Home(self.auth, raw_data=home)
File “/usr/local/lib/python3.10/site-packages/pyatmo/home.py”, line 48, in init
self.modules = {
File “/usr/local/lib/python3.10/site-packages/pyatmo/home.py”, line 49, in
module[“id”]: getattr(modules, module[“type”])(
File “/usr/local/lib/python3.10/site-packages/pyatmo/modules/module.py”, line 199, in init
super().init(home, module) # type: ignore # mypy issue 4335
File “/usr/local/lib/python3.10/site-packages/pyatmo/modules/module.py”, line 61, in init
super().init(home, module) # type: ignore # mypy issue 4335
File “/usr/local/lib/python3.10/site-packages/pyatmo/modules/module.py”, line 230, in init
super().init(home, module) # type: ignore # mypy issue 4335
File “/usr/local/lib/python3.10/site-packages/pyatmo/modules/module.py”, line 242, in init
super().init(home, module) # type: ignore # mypy issue 4335
File “/usr/local/lib/python3.10/site-packages/pyatmo/modules/module.py”, line 508, in init
self.device_type = DeviceType(module[“type”])
File “/usr/local/lib/python3.10/enum.py”, line 385, in call
return cls.new(cls, value)
File “/usr/local/lib/python3.10/enum.py”, line 710, in new
raise ve_exc
ValueError: ‘NLD’ is not a valid DeviceType

This is a known bug. A fix is on the way.