Skip to content

Commit 01d50b2

Browse files
Deprecating config entry listener with reloading methods in config flow (#3082)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
1 parent 3b4aa16 commit 01d50b2

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
author: G Johansson
3+
authorURL: https://github.com/gjohansson-ST
4+
authorImageURL: https://avatars.githubusercontent.com/u/62932417?v=4
5+
authorTwitter: GJohansson
6+
title: "Deprecating config entry listener with reloading methods in config flow"
7+
---
8+
9+
As of Home Assistant Core 2026.6, using a config entry listener together with any reloading methods in a config flow is deprecated and will result in an error from 2026.12.
10+
11+
## Background
12+
13+
Using a config entry listener together with any reloading methods in a config flow can cause the integration to reload twice and/or create a race condition.
14+
15+
## Possible solutions
16+
17+
- Remove the config entry listener and rely only on the reloading methods in your config flow.
18+
- Use `async_update_and_abort()` instead of `async_update_reload_and_abort()`.
19+
- Set `reload_on_update=False` when calling `_abort_if_unique_id_configured()`.
20+
21+
More details can be found in the [core PR](https://github.com/home-assistant/core/pull/169198).

0 commit comments

Comments
 (0)