Skip to content
New issue

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

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

Already on GitHub? # to your account

[Bug] after every home-assistant reboot the integration displays an available update for my TrueNAS with version "unknown" #174

Closed
mindgam3s opened this issue Oct 9, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@mindgam3s
Copy link

Describe the issue

after every home-assistant reboot the integration displays an available update for my TrueNAS with version "unknown"
this prompt removes itself after a few seconds right after correcting itself to the real current version being "available"

How to reproduce the issue

reboot homeassistant
see an available update even though TrueNAS is on the latest version already

Expected behavior

no update prompt available on boot if not necessary

Screenshots

grafik
grafik

Software versions

Core 2024.10.1
Supervisor 2024.10.0
Operating System 13.1
Frontend 20241002.2

TrueNAS OS version 13.0-U6.2

TrueNAS homeassistant HACS integration version v1.2.5

@mindgam3s mindgam3s added the bug Something isn't working label Oct 9, 2024
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Oct 24, 2024
@mindgam3s
Copy link
Author

keep-alive

@github-actions github-actions bot removed the stale label Oct 25, 2024
@itsniawan
Copy link
Contributor

I think it happen because the default value of "updated_version" is "unknown". The current version didn't match the "updated_version", which current value is "unknown", so the system report that there is an update.
The workaround is by making the default value of "updated_version" to current local version, this will prevent false report by the system before its get the real latest version from TrueNAS.
The default value is located in coordinator.py line 285.
Change it from "default": "unknown" to "default": self.ds["system_info"]["version"]

@tomaae tomaae closed this as completed in ed432b9 Nov 14, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Dec 16, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants