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

v1.2.23 unable to load: Unable to import component: cannot import name 'ATTR_FORECAST_NATIVE_PRECIPITATION' #60

Closed
bcutter opened this issue Sep 3, 2022 · 4 comments

Comments

@bcutter
Copy link

bcutter commented Sep 3, 2022

Version of home_assistant

2022.6.7

Version of the custom_component

1.2.23

Describe the bug

After updating from v1.2.22 to v1.2.23 the integration does not load anymore.

Debug log


Logger: homeassistant.setup
Source: setup.py:162
First occurred: 22:00:27 (1 occurrences)
Last logged: 22:00:27

Setup failed for custom integration dwd_weather: Unable to import component: cannot import name 'ATTR_FORECAST_NATIVE_PRECIPITATION' from 'homeassistant.components.weather' (/usr/src/homeassistant/homeassistant/components/weather/__init__.py)

@FL550
Copy link
Owner

FL550 commented Sep 3, 2022

Please update your HA instance. This attributes was added in a later version.

@bcutter
Copy link
Author

bcutter commented Sep 3, 2022

Thanks for that quick answer. I still have some dependencies (shelly...) so I'm stuck on 2022.6.x currently. Downgraded DWD Weather to 1.2.22 for now. Will close this issue once I can update HA Core and DWD Weather to the latest version.

By the way: can't you hold back updates if HA Core version does not meet minimum version requirements? There must be some dependency checks in HACS for sure...

@FL550
Copy link
Owner

FL550 commented Sep 4, 2022

Thanks for the hint. I wasn't aware of this functionality. I updated the release 😃

@bcutter
Copy link
Author

bcutter commented Oct 13, 2022

Updated to HA Core 2022.7.7 and updated DWDWeather to latest v1.2.24. After a restart, the message is not in LOG and the integration is working.

@bcutter bcutter closed this as completed Oct 13, 2022
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

2 participants