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"}