From de0247f7c17a08375994eff43a1ce3f8d519d9fb Mon Sep 17 00:00:00 2001 From: Chris <1105672+firstof9@users.noreply.github.com> Date: Wed, 4 Dec 2024 15:18:14 -0700 Subject: [PATCH] fix: config flow missing storage default (#1027) * fix: config flow missing storage default * formatting --- custom_components/mail_and_packages/config_flow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom_components/mail_and_packages/config_flow.py b/custom_components/mail_and_packages/config_flow.py index 15c1b065..039f2246 100644 --- a/custom_components/mail_and_packages/config_flow.py +++ b/custom_components/mail_and_packages/config_flow.py @@ -295,7 +295,9 @@ def _get_default(key: str, fallback_default: Any = None) -> None: return vol.Schema( { - vol.Required(CONF_STORAGE, default=_get_default(CONF_STORAGE)): cv.string, + vol.Required( + CONF_STORAGE, default=_get_default(CONF_STORAGE, DEFAULT_STORAGE) + ): cv.string, } )