Merge pull request #127 from Kathou99/main

Update config_flow.py
This commit is contained in:
Patrick762 authored and GitHub committed 2024-08-04 12:08:16 +02:00
commit 21e89e738d
1 file changed
+1 -6
+1 -6
View File
@@ -150,7 +150,7 @@ class OptionsFlowHandler(config_entries.OptionsFlow):
if user_input[CONF_MAX_RETRIES] < 1:
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,
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(
title="",
data={