We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ddb12c commit fb27614Copy full SHA for fb27614
1 file changed
custom_components/generac/config_flow.py
@@ -108,7 +108,7 @@ async def async_step_user(self, user_input=None):
108
"""Handle a flow initialized by the user."""
109
if user_input is not None:
110
self.options.update(user_input)
111
- return await self._update_options()
+ return self.async_create_entry(data=user_input)
112
113
return self.async_show_form(
114
step_id="user",
@@ -122,12 +122,3 @@ async def async_step_user(self, user_input=None):
122
),
123
)
124
125
- async def _update_options(self):
126
- """Update config entry options."""
127
- self.hass.config_entries.async_update_entry(
128
- self.config_entry, data=self.options
129
- )
130
- return self.async_create_entry(
131
- title=self.config_entry.data.get(CONF_USERNAME, "generac"),
132
- data=self.options,
133
0 commit comments