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

async_config_entry_first_refresh deprecated #440

Open
rufik opened this issue Jan 2, 2025 · 4 comments
Open

async_config_entry_first_refresh deprecated #440

rufik opened this issue Jan 2, 2025 · 4 comments

Comments

@rufik
Copy link

rufik commented Jan 2, 2025

I've hit a message when pressed "Configure" button at integration page:

Detected that custom integration 'dahua' uses `async_config_entry_first_refresh`, which is only supported for coordinators with a config entry at custom_components/dahua/__init__.py, line 80: await coordinator.async_config_entry_first_refresh(). This will stop working in Home Assistant 2025.11, please create a bug report at https://github.com/rroller/dahua/issues

Not an error but worth to get fixed in next few months :)

@rroller
Copy link
Owner

rroller commented Jan 18, 2025

I can't reproduce this. What version of the plugin are you on? This should have been fixed already

@rufik
Copy link
Author

rufik commented Jan 18, 2025

HA Core 2024.12.5
Dahua Integration 0.9.70
I'll try to reproduce it...

@srkoster
Copy link
Contributor

The deprecation message appears in the log when you trigger the OptionsFlowHandler (go to the integration and press configure next to the device).

I've drafted #447 to fix it

@rroller
Copy link
Owner

rroller commented Jan 24, 2025

Thanks! Released in https://github.com/rroller/dahua/releases/tag/0.9.71

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

3 participants