Fix MQTT setup after changing config entry flow options (#79103)

Fix issues with config flow options
This commit is contained in:
Jan Bouwhuis 2022-09-27 08:05:28 +02:00 committed by GitHub
parent 499c3410d1
commit c5a58c8501
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 42 additions and 22 deletions

View file

@ -262,7 +262,9 @@ class MQTTOptionsFlowHandler(config_entries.OptionsFlow):
updated_config.update(self.broker_config)
updated_config.update(options_config)
self.hass.config_entries.async_update_entry(
self.config_entry, data=updated_config
self.config_entry,
data=updated_config,
title=str(self.broker_config[CONF_BROKER]),
)
return self.async_create_entry(title="", data={})