From 5327735cead9f1270e5a2ca60a6340d1bd11ab18 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Mon, 24 Mar 2025 13:23:23 +0100 Subject: [PATCH] Add blog post about renamed subentry flow methods (#2617) --- blog/2025-03-24-config-subentry-flow-changes.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 blog/2025-03-24-config-subentry-flow-changes.md diff --git a/blog/2025-03-24-config-subentry-flow-changes.md b/blog/2025-03-24-config-subentry-flow-changes.md new file mode 100644 index 00000000..b33fbf76 --- /dev/null +++ b/blog/2025-03-24-config-subentry-flow-changes.md @@ -0,0 +1,13 @@ +--- +author: Erik Montnemery +authorURL: https://github.com/emontnemery +title: "Changes to ConfigSubentryFlow" +--- + +`ConfigSubentryFlow._reconfigure_entry_id` has been renamed to `ConfigSubentryFlow._entry_id` and `ConfigSubentryFlow._get_reconfigure_entry` has been renamed to `ConfigSubentryFlow._get_entry`. + +The reason for the change is that both sub entry user flows and subentry reconfigure flows need access to parent config entry, e.g. getting options, data, etc. + +Custom integrations which call either of the renamed methods need to update their implementations. + +The change is introduced in the [home assistant core PR #141017](https://github.com/home-assistant/core/pull/141017).