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

This will stop working in Home Assistant 2025.1 #37

Open
alex-v-fraser opened this issue Jul 30, 2024 · 2 comments
Open

This will stop working in Home Assistant 2025.1 #37

alex-v-fraser opened this issue Jul 30, 2024 · 2 comments

Comments

@alex-v-fraser
Copy link

alex-v-fraser commented Jul 30, 2024

Регистратор: homeassistant.helpers.frame
Источник: helpers/frame.py:151
Первое сообщение: 19:17:05 (2 сообщений)
Последнее сообщение: 19:17:06

Detected code that calls async_forward_entry_setup for integration lkcomu_interrao with title: my.mosenergosbyt.ru (**********@mail.ru) and entry_id: c5e37740**************f67b2af61c, 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.

@alex-v-fraser
Copy link
Author

alex-v-fraser commented Jul 30, 2024

в файле init.py вместо

    for domain in (SENSOR_DOMAIN, BINARY_SENSOR_DOMAIN):
        hass.async_create_task(
            hass.config_entries.async_forward_entry_setup(
                config_entry,
                domain,
            )
        )

вставить

    await hass.config_entries.async_forward_entry_setups(
        config_entry,
        [SENSOR_DOMAIN, BINARY_SENSOR_DOMAIN],
    )

@alex-v-fraser
Copy link
Author

fixed

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

1 participant