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

No more value reading after upgrading the HA-Core to 2025.1.0 #3

Open
stefansturzi opened this issue Jan 4, 2025 · 7 comments
Open

Comments

@stefansturzi
Copy link

After upgrade of the HA-Core to 2025.1.0 the solarmanager don't show any value from the entity

home-assistant_2025-01-04T10-06-35.062Z.log

Solarmanager entity error

@free-tv-01
Copy link

Same Problem

@analog-digital-ch
Copy link

I had several problems with this integration and solarmanager. That's why i canceled solarmanager and programmed the electric boiler optimization for AskoHeat myself in home assistant with python. No big deal ... but a few hours and a lot of home assistant entities.

@mraths
Copy link
Contributor

mraths commented Jan 7, 2025

You have to remove ENERGY_KILO_WATT_HOUR from sensor.py because is deprecated.

@mraths
Copy link
Contributor

mraths commented Jan 8, 2025

I've created a fork of this project with the change for HA Core 2025.1.1
Additional I've done some other changes in sensor.py
Feel free to use it - I didn't know if my pull request will be approved.

@stefansturzi
Copy link
Author

Today I adopted your changes.

I then had warnings regarding in the log:
/usr/local/lib/python3.13/site-packages/pydantic/_internal/_config.py:345: UserWarning: Valid config keys have changed in V2: * 'allow_population_by_field_name' has been renamed to 'populate_by_name' warnings.warn(message, UserWarning)

Source:custom_components/solarmanagerch/openapi_client/models/autarchy.py:24

I then edited all files in "custom_components/solarmanagerch/openapi_client/models"
that contained the entry "allow_population_by_field_name" and replaced it with "populate_by_name".

The entities now show the correct values ​​again.

Thanks for your support

@mraths
Copy link
Contributor

mraths commented Jan 10, 2025

Thanks, I've added to my fork and created a pull request.
But this works only for HA-Core 2025.1.0 and upwards

@martingebert9428
Copy link

I also made the adjustments today and everything is working fine again. Thank you @mraths

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

No branches or pull requests

5 participants