Pyhass / Hive-Custom-Component

A custom version of the home assistant hive component
MIT License
33 stars 17 forks source link

HA Warning: async_forward_entry_setup lock issue #157

Open ProphetOfDoom opened 3 months ago

ProphetOfDoom commented 3 months ago

Describe the bug async_forward_entry_setup can cause the setup lock to be released before the setup is done and will stop working in HA 2025.1

To Reproduce Start/Restart Home Assistant Check system log

Expected behaviour Warning should not appear

Screenshots HA Version Info:

Screenshot 2024-07-17 163141

Desktop (please complete the following information): N/A

Additional context System log entry:

Logger: homeassistant.helpers.frame Source: helpers/frame.py:151 First occurred: 16:06:49 (5 occurrences) Last logged: 16:06:49

Detected code that calls async_forward_entry_setup for integration hive with title: and entry_id: , 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.