bremor / bureau_of_meteorology

Custom component for retrieving weather information from the Bureau of Meteorology.
MIT License
186 stars 31 forks source link

Fix setup block warning #232

Closed Poshy163 closed 2 months ago

Poshy163 commented 2 months ago

Fixes #228

Detected code that calls async_forward_entry_setup for integration bureau_of_meteorology with title: Home sensor and entry_id: 34a49ad6f5abf60a6fa407bc1551b4d4, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.

Makin-Things commented 2 months ago

Thanks for the PR. I won't have time to check it out properly until the weekend.

Poshy163 commented 2 months ago

seems like this push it now into the homeassistant.helpers.frame logger

Detected that custom integration 'bureau_of_meteorology' calls async_forward_entry_setup for integration, bureau_of_meteorology with title: Home sensor and entry_id: 34a49ad6f5abf60a6fa407bc1551b4d4, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead at custom_components/bureau_of_meteorology/init.py, line 84: await hass.async_create_task(, please create a bug report at https://github.com/bremor/bureau_of_meteorology/issues

will make a another edit for it now

Poshy163 commented 2 months ago

Coolio, doing this seems to remove the warning entirely