Skip to content

Commit

Permalink
fix config flow bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamish Findlay committed Jan 20, 2024
1 parent a652205 commit ae4dd1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/battery_sim/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ae4dd1c

Please sign in to comment.