mirror of
https://github.com/home-assistant/core.git
synced 2025-08-31 02:11:32 +02:00
Add reload for adding subentry
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user