From 63246b3512e8aa1b945aa2acaa78366f256f45ef Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 9 Jul 2022 12:17:08 -0700 Subject: [PATCH 1/2] fix: adjust config flow for amazon forwards --- custom_components/mail_and_packages/config_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/mail_and_packages/config_flow.py b/custom_components/mail_and_packages/config_flow.py index 051778e5..0931f332 100644 --- a/custom_components/mail_and_packages/config_flow.py +++ b/custom_components/mail_and_packages/config_flow.py @@ -186,7 +186,7 @@ def _get_default(key: str, fallback_default: Any = None) -> None: CONF_RESOURCES, default=_get_default(CONF_RESOURCES) ): cv.multi_select(get_resources()), vol.Optional( - CONF_AMAZON_FWDS, default=_get_default(CONF_AMAZON_FWDS, "") + CONF_AMAZON_FWDS, default=_get_default(CONF_AMAZON_FWDS) ): str, vol.Optional(CONF_AMAZON_DAYS, default=_get_default(CONF_AMAZON_DAYS)): int, vol.Optional( From 28e65add30c71685ba7610b0747a2db0664174f5 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 9 Jul 2022 12:32:30 -0700 Subject: [PATCH 2/2] linting --- custom_components/mail_and_packages/config_flow.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/custom_components/mail_and_packages/config_flow.py b/custom_components/mail_and_packages/config_flow.py index 0931f332..4c797c07 100644 --- a/custom_components/mail_and_packages/config_flow.py +++ b/custom_components/mail_and_packages/config_flow.py @@ -185,9 +185,7 @@ def _get_default(key: str, fallback_default: Any = None) -> None: vol.Required( CONF_RESOURCES, default=_get_default(CONF_RESOURCES) ): cv.multi_select(get_resources()), - vol.Optional( - CONF_AMAZON_FWDS, default=_get_default(CONF_AMAZON_FWDS) - ): str, + vol.Optional(CONF_AMAZON_FWDS, default=_get_default(CONF_AMAZON_FWDS)): str, vol.Optional(CONF_AMAZON_DAYS, default=_get_default(CONF_AMAZON_DAYS)): int, vol.Optional( CONF_SCAN_INTERVAL, default=_get_default(CONF_SCAN_INTERVAL)