Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legrand/Netatmo failed to set up #81273

Closed
brantmacga opened this issue Oct 30, 2022 · 9 comments · Fixed by #85016
Closed

Legrand/Netatmo failed to set up #81273

brantmacga opened this issue Oct 30, 2022 · 9 comments · Fixed by #85016
Assignees

Comments

@brantmacga
Copy link

The problem

I'm having the same issue reported previously and now closed. The update didn't fix it for me.

What version of Home Assistant Core has the issue?

2022.10.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Netatmo

Link to integration documentation on our website

https://www.home-assistant.io/integrations/netatmo

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.config_entries
Source: components/netatmo/data_handler.py:199 
First occurred: 6:15:29 PM (1 occurrences) 
Last logged: 6:15:29 PM

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 <dictcomp>
    module["id"]: getattr(modules, module["type"])(
AttributeError: module 'pyatmo.modules' has no attribute 'NLUI'

Additional information

No response

@home-assistant
Copy link

Hey there @cgtobi, mind taking a look at this issue as it has been labeled with an integration (netatmo) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of netatmo can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Change the title of the issue.
  • @home-assistant unassign netatmo Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


netatmo documentation
netatmo source
(message by IssueLinks)

@cgtobi
Copy link
Contributor

cgtobi commented Oct 31, 2022

Please check the latest beta (0b4) as this was fixed with #81290.

@cgtobi cgtobi closed this as completed Oct 31, 2022
@brantmacga
Copy link
Author

I am installing the integration directly from the Home Assistant application and get this error.

@cgtobi
Copy link
Contributor

cgtobi commented Oct 31, 2022

I get that. But I'd like to ask you to try 2022.11.0b4 or wait until Wednesday for the official release.

@cgtobi
Copy link
Contributor

cgtobi commented Oct 31, 2022

You can already use it now. The beta is pretty stable.

@brantmacga
Copy link
Author

I get that. But I'd like to ask you to try 2022.11.0b4 or wait until Wednesday for the official release.

How do I see which version I am running? I just re-installed today and I'm getting the same error. Thanks.

@r0bb10
Copy link

r0bb10 commented Nov 4, 2022

Logger: homeassistant.config_entries
Source: components/netatmo/data_handler.py:199
First occurred: 07:36:57 (1 occurrences)
Last logged: 07:36:57

Error setting up entry Netatmo 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 <dictcomp>
    module["id"]: getattr(modules, module["type"])(
AttributeError: module 'pyatmo.modules' has no attribute 'BNEU'

i have errors also with the latest Home Assistant 2022.11.1 build, wierd.

@cgtobi
Copy link
Contributor

cgtobi commented Nov 4, 2022

Thanks for reporting. A fix is on the way.

@cgtobi cgtobi reopened this Nov 4, 2022
@cgtobi cgtobi mentioned this issue Jan 2, 2023
19 tasks
@github-actions github-actions bot locked and limited conversation to collaborators Jan 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants