From cd74d65794c020d773f8231f6a5287ec675e1ae0 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Wed, 13 Aug 2025 20:23:06 +0000 Subject: [PATCH] Add reload for adding subentry --- homeassistant/components/mqtt/config_flow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/mqtt/config_flow.py b/homeassistant/components/mqtt/config_flow.py index 8e8953ab55f..0a26e2c52a0 100644 --- a/homeassistant/components/mqtt/config_flow.py +++ b/homeassistant/components/mqtt/config_flow.py @@ -3822,7 +3822,7 @@ class MQTTSubentryFlowHandler(ConfigSubentryFlow): full_entity_name = device_name self._async_update_component_data_defaults() - return self.async_create_entry( + result = self.async_create_entry( data=self._subentry_data, title=self._subentry_data[CONF_DEVICE][CONF_NAME], description_placeholders={ @@ -3830,6 +3830,8 @@ class MQTTSubentryFlowHandler(ConfigSubentryFlow): CONF_PLATFORM: platform, }, ) + self.hass.config_entries.async_schedule_reload(self._get_entry().entry_id) + return result async def async_step_availability( self, user_input: dict[str, Any] | None = None