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

zha device_registry. async_get_or_create and references a non-existent via_device #135147

Closed
Brunsben opened this issue Jan 8, 2025 · 2 comments

Comments

@Brunsben
Copy link

Brunsben commented Jan 8, 2025

The problem

I have the following error in my logs:

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:324
First occurred: 23:29:09 (1 occurrences)
Last logged: 23:29:09

Detected that the integration 'zha' device_registry. async_get_or_create and references a non-existent via_device ('zha', e0:79:8d:ff:fe:1a:28:9b), with device info: {'connections': {('zigbee', '0c:ef:f6:ff:fe:5b:48:31')}, 'identifiers': {('zha', '0c:ef:f6:ff:fe:5b:48:31')}, 'manufacturer': 'eWeLink', 'model': 'SNZB-03P', 'name': 'eWeLink SNZB-03P', 'via_device': ('zha', e0:79:8d:ff:fe:1a:28:9b)} at homeassistant/components/zha/helpers. py, line 1177: _async_add_entities(entities_to_add, update_before_add=False). This will no longer work in Home Assistant 2025.12.0, please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+zha%22

Translated with DeepL.com (free version)

What version of Home Assistant Core has the issue?

core-2025.1.1

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

zha

Link to integration documentation on our website

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

Diagnostics information

config_entry-zha-291c4c3abb8d345a8825e5d8f9290329.json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Detected that integration 'zha' calls `device_registry.async_get_or_create` referencing a non existing `via_device` ('zha', e0:79:8d:ff:fe:1a:28:9b), with device info: {'connections': {('zigbee', '0c:ef:f6:ff:fe:5b:48:31')}, 'identifiers': {('zha', '0c:ef:f6:ff:fe:5b:48:31')}, 'manufacturer': 'eWeLink', 'model': 'SNZB-03P', 'name': 'eWeLink SNZB-03P', 'via_device': ('zha', e0:79:8d:ff:fe:1a:28:9b)} at homeassistant/components/zha/helpers.py, line 1177: _async_add_entities(entities_to_add, update_before_add=False). This will stop working in Home Assistant 2025.12.0, please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+zha%22

Additional information

I currently have no problems, I just have this error in the logs

@home-assistant
Copy link

home-assistant bot commented Jan 8, 2025

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

Code owner commands

Code owners of zha can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign zha Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


zha documentation
zha source
(message by IssueLinks)

@puddly
Copy link
Contributor

puddly commented Jan 8, 2025

Thanks for the issue! This has actually been fixed by #135008. The fix will be in 2025.1.2.

@puddly puddly closed this as completed Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants