From ae4dd1cb091c864670b9590f21a424067c03f52b Mon Sep 17 00:00:00 2001 From: Hamish Findlay Date: Sat, 20 Jan 2024 19:53:52 +0000 Subject: [PATCH] fix config flow bug --- custom_components/battery_sim/config_flow.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_components/battery_sim/config_flow.py b/custom_components/battery_sim/config_flow.py index 2be0653..46e83fe 100644 --- a/custom_components/battery_sim/config_flow.py +++ b/custom_components/battery_sim/config_flow.py @@ -76,6 +76,7 @@ async def async_step_custom(self, user_input=None): self._data = user_input self._data[SETUP_TYPE] = CONFIG_FLOW self._data[CONF_NAME] = f"{DOMAIN}: {self._data[CONF_UNIQUE_NAME]}" + self._data[CONF_INPUT_LIST] = [] await self.async_set_unique_id(self._data[CONF_NAME]) self._abort_if_unique_id_configured() return await self.async_step_meter_menu()