From 7466773ac8afab753afb520514df869e4bcb54bb Mon Sep 17 00:00:00 2001 From: tljuniper <48209000+tljuniper@users.noreply.github.com> Date: Sun, 5 Mar 2023 21:28:46 +0100 Subject: [PATCH] substitutions: Don't warn when passwords look like a substitution (#4161) Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> --- esphome/components/substitutions/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/substitutions/__init__.py b/esphome/components/substitutions/__init__.py index 5a3da1abbe..b65410cbed 100644 --- a/esphome/components/substitutions/__init__.py +++ b/esphome/components/substitutions/__init__.py @@ -66,7 +66,7 @@ def _expand_substitutions(substitutions, value, path, ignore_missing): if name.startswith("{") and name.endswith("}"): name = name[1:-1] if name not in substitutions: - if not ignore_missing: + if not ignore_missing and "password" not in path: _LOGGER.warning( "Found '%s' (see %s) which looks like a substitution, but '%s' was " "not declared",