From 76093d898d13bddc51df959241e7fdb61227f166 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sun, 20 Aug 2023 18:45:39 +0200 Subject: [PATCH] Fix template selector usage in config flows (#17643) --- src/components/ha-form/compute-initial-ha-form-data.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/ha-form/compute-initial-ha-form-data.ts b/src/components/ha-form/compute-initial-ha-form-data.ts index d297f3286a..c1d2ba5824 100644 --- a/src/components/ha-form/compute-initial-ha-form-data.ts +++ b/src/components/ha-form/compute-initial-ha-form-data.ts @@ -47,11 +47,12 @@ export const computeInitialHaFormData = ( } else if ("boolean" in selector) { data[field.name] = false; } else if ( - "text" in selector || "addon" in selector || "attribute" in selector || "file" in selector || "icon" in selector || + "template" in selector || + "text" in selector || "theme" in selector ) { data[field.name] = "";