From df552f08c32f2e909d4acbd9347aaf274dd79403 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 30 Oct 2020 03:29:12 -0500 Subject: [PATCH] Purge unused constants from template helper (#42618) --- homeassistant/helpers/template.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/homeassistant/helpers/template.py b/homeassistant/helpers/template.py index cd286b15dc7..eae98b44044 100644 --- a/homeassistant/helpers/template.py +++ b/homeassistant/helpers/template.py @@ -48,12 +48,6 @@ DATE_STR_FORMAT = "%Y-%m-%d %H:%M:%S" _RENDER_INFO = "template.render_info" _ENVIRONMENT = "template.environment" -_RE_NONE_ENTITIES = re.compile(r"distance\(|closest\(", re.I | re.M) -_RE_GET_ENTITIES = re.compile( - r"(?:(?:(?:states\.|(?Pis_state|is_state_attr|state_attr|states|expand)\((?:[\ \'\"]?))(?P[\w]+\.[\w]+)|states\.(?P[a-z]+)|states\[(?:[\'\"]?)(?P[\w]+))|(?P[\w]+))", - re.I | re.M, -) - _RE_JINJA_DELIMITERS = re.compile(r"\{%|\{\{|\{#") _RESERVED_NAMES = {"contextfunction", "evalcontextfunction", "environmentfunction"}