FL550 / dwd_weather

Deutscher Wetterdienst integration for Home-Assistant
MIT License
173 stars 11 forks source link

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

Closed bcutter closed 1 year ago

bcutter commented 1 year ago

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 commented 1 year ago

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

bcutter commented 1 year ago

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 commented 1 year ago

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

bcutter commented 1 year ago

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.