Skip to content

Commit

Permalink
fix: move amazon fwd email check to amazon reconfig function (#1067)
Browse files Browse the repository at this point in the history
* fix: move amazon fwd email check to amazon reconfig function

* fix: format with black

---------

Co-authored-by: Hogantg <[email protected]>
  • Loading branch information
hogantg and Hogantg authored Feb 14, 2025
1 parent 0f1e948 commit 786937d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/mail_and_packages/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,9 +538,6 @@ async def async_step_reconfig_2(self, user_input=None):

async def _show_reconfig_2(self, user_input):
"""Step 2 setup."""
if self._data[CONF_AMAZON_FWDS] == []:
self._data[CONF_AMAZON_FWDS] = "(none)"

return self.async_show_form(
step_id="reconfig_2",
data_schema=_get_schema_step_2(self._data, user_input, self._data),
Expand Down Expand Up @@ -591,6 +588,9 @@ async def async_step_reconfig_amazon(self, user_input=None):

async def _show_reconfig_amazon(self, user_input):
"""Step 3 setup."""
if self._data[CONF_AMAZON_FWDS] == []:
self._data[CONF_AMAZON_FWDS] = "(none)"

return self.async_show_form(
step_id="reconfig_amazon",
data_schema=_get_schema_step_amazon(user_input, self._data),
Expand Down

0 comments on commit 786937d

Please sign in to comment.