tomaae / homeassistant-truenas

TrueNAS integration for Home Assistant
Apache License 2.0
183 stars 17 forks source link

[Bug] Invalid device info #103

Closed firstof9 closed 1 year ago

firstof9 commented 1 year ago

Describe the issue

Home Assistant is reporting the following error when attempting to load the integration: 2023-08-30 15:52:12.195 ERROR (MainThread) [homeassistant.components.binary_sensor] truenas: Not adding entity with invalid device info: ...

How to reproduce the issue

Install integration Setup integration

Expected behavior

No error messages

Screenshots

Software versions

Diagnostics data

Traceback/Error logs

2023-08-30 15:52:12.195 ERROR (MainThread) [homeassistant.components.binary_sensor] truenas: Not adding entity with invalid device info: Invalid device info [...] for 'truenas' config entry: device info needs to either describe a device, link to existing device or provide extra information.

Additional context

tomaae commented 1 year ago

known issue, caused by unlisted breaking change in last HA release. will be fixed in next integration release

firstof9 commented 1 year ago

Sweet thanks, figured I'd make an issue either way for any others who may hit this as well.

firstof9 commented 1 year ago

If you drop a beta, I'll be happy to test it out.

tomaae commented 1 year ago

there wont be a beta for this integation. I'm already working on new system for my integrations which is updated to latest HA standards. Once that is fully tested, I will just move it over to this integration and others since they share common code for this reason.

firstof9 commented 1 year ago

Either way, I'd be happy to test.

Basserra commented 1 year ago

+1 Experiencing this issue for a while now too. Too lazy to post a report myself. Glad to hear it's known and in process. Thanks for the project/integration!

ruegr commented 10 months ago

Hi @tomaae, unfortunately I still have the same problem. HomeAssistant, HACS and the TrueNAS integration are up to date (2023.11.1, 1.33.0, v.1.2.5). I removed and reinstalled the complete Integration and the device itself - but there ist just one entity visible (update.update). After a fresh reboot the following truenas related logs are generated:

If I can supply more information please dont hesitate to ask, I really appreciate your work!

tomaae commented 10 months ago

thats not the same problem. open a new ticket for this one and provide debugs as well. there is most likely some error before those messages.