-
Notifications
You must be signed in to change notification settings - Fork 7
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
Seems to be broken on HA 2024.1 #21
Comments
Same problem for me. This is the error from the logs.
|
I have the same issue, and also the same log entry as @audun-v |
Same issue on my install, after updating to 2024.1 |
For me the integration stopped working ond january 4th on 22:55. I did not upgrade HA core to 2024.1 until january 5th. |
Same issue after update to 2024.1 |
Same here… |
Same here... |
This seems to be related to this: https://developers.home-assistant.io/blog/2023/12/11/entity-description-changes/ I am no Python developer and the Home Assistant code seems very confusing to me. But by changing line 96 and the following lines in the initialize block in sensor.py to this, the integration again works on Home Assistant 2024.1.3.
|
Thank you - works like a charm! |
And how am I doing that @mariwing ? |
Delete the follwing from /custom_components/elvia/sensor.py (Line 97):
|
Thank you!
But it didn’t help:-(
… 22. jan. 2024 kl. 12:27 skrev tordenflesk ***@***.***>:
And how am I doing that @mariwing <https://github.com/mariwing> ?
Delete the follwing from /custom_components/elvia/sensor.py(Line 97):
description.key = f"{key_prefix}_{description.key}"
—
Reply to this email directly, view it on GitHub <#21 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/A2WDGM7XFGBBUBWJEJOZVGTYPZEKVAVCNFSM6AAAAABBMVBQZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBTHAYDKMZXGA>.
You are receiving this because you commented.
|
Deleting (or commenting out with #) line 97 worked for me. Unfortunately, it created all new entities, so the Elvia device now has all the previous entities with an "unavailable" state and new entities with _2 appended to the entity ID and working values. |
To avoid duplicates, use the line
as I mentioned. This was previously set from the property that was on line 97 (?) that cause the original bug. Since that property is no longer set - the unique id should be set from the values previously used to set the property. |
(Original question removed: I see that you have described the full change further up. Thanks!) |
Solved it for me! Thank you very much. |
Fixing sindrebroch#21 - unique identities
Maybe a stupid question but why is this not fixed yet? I have a new installation and had to do the same tweaks in the sensor.py file. |
Probably because the creator has abandoned this project unfortunately. |
Hi!
After upgrading to 2024.1 the Elvia integration stopped working. I restored a backup (to version 2023.12.4) and it started working again.
Unfortunately I did not keep the logs from 2024.1, but if you want me to I can reinstall that version and get the error messages in the log for you.
The text was updated successfully, but these errors were encountered: