Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Invalid device info #42

Closed
1 of 3 tasks
Taraman17 opened this issue Aug 13, 2023 · 4 comments · Fixed by #44
Closed
1 of 3 tasks

Invalid device info #42

Taraman17 opened this issue Aug 13, 2023 · 4 comments · Fixed by #44
Labels

Comments

@Taraman17
Copy link
Contributor

Type of problem

  • I have a question.
  • A feature does not work as expected.
  • I found a bug (see error log below).

Version

2.5

Detailed description

When starting HA I get the error below for most of the devices.
This only happens in my dev-container, so it is not a real life bug yet. But i fear it might be connected to one of the latest changes, so it should be addressed.
But until now, I could not find any cause for it and debugging brought me no further, so I hope to get some more information here.

Error log

2023-08-13 21:01:44.337 ERROR (MainThread) [homeassistant.components.switch] homee: Not adding entity with invalid device info: Invalid device info {'default_manufacturer': 'unknown', 'default_model': 'IMPULSE_RELAY', 'identifiers': {('homee', 9)}, 'name': 'Hoftor', 'sw_version': 'undefined', 'via_device': ('homee', '81887f8b4e4c8f11969524f98154a4fc')} for 'homee' config entry: device info needs to either describe a device, link to existing device or provide extra information.
@Taraman17
Copy link
Contributor Author

Seems to be related to
home-assistant/core#98157

@Taraman17
Copy link
Contributor Author

Meanwhile seeing this also in my Production environment as warning:

2023-09-05 09:26:24.799 ERROR (MainThread) [homeassistant.components.switch] Ignoring invalid device info: Invalid device info {'default_manufacturer': 'unknown', 'default_model': 'GARAGE_DOOR_IMPULSE_OPERATOR', 'identifiers': {('homee', 3)}, 'name': 'Garagentor', 'sw_version': 'undefined', 'via_device': ('homee', '07e00b16a39939557d00ddd60639a0bf')} for 'homee' config entry: device info needs to either describe a device, link to existing device or provide extra information.
2023-09-05 09:26:24.823 ERROR (MainThread) [homeassistant.components.switch] Ignoring invalid device info: Invalid device info {'default_manufacturer': 'unknown', 'default_model': 'IMPULSE_RELAY', 'identifiers': {('homee', 9)}, 'name': 'Hoftor', 'sw_version': 'undefined', 'via_device': ('homee', '07e00b16a39939557d00ddd60639a0bf')} for 'homee' config entry: device info needs to either describe a device, link to existing device or provide extra information.
2023-09-05 09:26:24.835 ERROR (MainThread) [homeassistant.components.switch] Ignoring invalid device info: Invalid device info {'default_manufacturer': 'unknown', 'default_model': 'IMPULSE_RELAY', 'identifiers': {('homee', 9)}, 'name': 'Hoftor', 'sw_version': 'undefined', 'via_device': ('homee', '07e00b16a39939557d00ddd60639a0bf')} for 'homee' config entry: device info needs to either describe a device, link to existing device or provide extra information.
2023-09-05 09:26:24.849 ERROR (MainThread) [homeassistant.components.sensor] Ignoring invalid device info: Invalid device info {'default_manufacturer': 'unknown', 'default_model': 'GARAGE_DOOR_IMPULSE_OPERATOR', 'identifiers': {('homee', 3)}, 'name': 'Garagentor', 'sw_version': 'undefined', 'via_device': ('homee', '07e00b16a39939557d00ddd60639a0bf')} for 'homee' config entry: device info needs to either describe a device, link to existing device or provide extra information.
2023-09-05 09:26:24.862 ERROR (MainThread) [homeassistant.components.sensor] Ignoring invalid device info: Invalid device info {'default_manufacturer': 'unknown', 'default_model': 'GARAGE_DOOR_IMPULSE_OPERATOR', 'identifiers': {('homee', 3)}, 'name': 'Garagentor', 'sw_version': 'undefined', 'via_device': ('homee', '07e00b16a39939557d00ddd60639a0bf')} for 'homee' config entry: device info needs to either describe a device, link to existing device or provide extra information.

Will need to be fixed soon I think

@Taraman17
Copy link
Contributor Author

Taraman17 commented Sep 5, 2023

Found the solution on HA Discord:

You should only use keys from one of the categories in the table at the following page (so not mix them from different categories) https://developers.home-assistant.io/docs/device_registry_index/#categorizing-to-device-info

https://discord.com/channels/330944238910963714/330990195199442944/1138907553414267093

@github-actions
Copy link

github-actions bot commented Sep 9, 2023

🎉 This issue has been resolved in version 2.5.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant