Update config_flow.py
fix this bug: OptionsFlowHandler.async_step_init: Config entry f3a445b566f0876e0d79f02059b7cb2a has not been changed
This commit is contained in:
1 parent
6f9afedfdb
commit
3e54283faf
1 file changed
+1
-6
@@ -150,7 +150,7 @@ class OptionsFlowHandler(config_entries.OptionsFlow):
|
|||||||
if user_input[CONF_MAX_RETRIES] < 1:
|
if user_input[CONF_MAX_RETRIES] < 1:
|
||||||
return self.async_abort(reason="invalid_retries")
|
return self.async_abort(reason="invalid_retries")
|
||||||
|
|
||||||
changed = self.hass.config_entries.async_update_entry(
|
self.hass.config_entries.async_update_entry(
|
||||||
self.config_entry,
|
self.config_entry,
|
||||||
data={
|
data={
|
||||||
**self.config_entry.data,
|
**self.config_entry.data,
|
||||||
@@ -163,11 +163,6 @@ class OptionsFlowHandler(config_entries.OptionsFlow):
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
if changed is False:
|
|
||||||
_LOGGER.error(
|
|
||||||
"Method OptionsFlowHandler.async_step_init: Config entry %s has not been changed",
|
|
||||||
self.config_entry.entry_id,
|
|
||||||
)
|
|
||||||
return self.async_create_entry(
|
return self.async_create_entry(
|
||||||
title="",
|
title="",
|
||||||
data={
|
data={
|
||||||
|
|||||||
Reference in new issue
Block a user