From 3e54283faf1abd64874843a6272c2a620ff62a7e Mon Sep 17 00:00:00 2001 From: "KathouQC(GirlsPowers)" <71993497+Kathou99@users.noreply.github.com> Date: Sat, 3 Aug 2024 18:15:49 -0400 Subject: [PATCH] Update config_flow.py fix this bug: OptionsFlowHandler.async_step_init: Config entry f3a445b566f0876e0d79f02059b7cb2a has not been changed --- custom_components/bluetti_bt/config_flow.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/custom_components/bluetti_bt/config_flow.py b/custom_components/bluetti_bt/config_flow.py index 545ff4e..a8f8a26 100644 --- a/custom_components/bluetti_bt/config_flow.py +++ b/custom_components/bluetti_bt/config_flow.py @@ -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={