From 38c33bd01e2358bd0f5839afd9512fb4c9b8cf86 Mon Sep 17 00:00:00 2001 From: Rohan Kapoor <rohan@rohankapoor.com> Date: Sat, 26 Jan 2019 17:11:09 -0800 Subject: [PATCH] Fix linting error (#20488) --- homeassistant/helpers/config_validation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/helpers/config_validation.py b/homeassistant/helpers/config_validation.py index 1edf52cbb7f..56d64cd8fd9 100644 --- a/homeassistant/helpers/config_validation.py +++ b/homeassistant/helpers/config_validation.py @@ -156,7 +156,7 @@ def entity_id(value: Any) -> str: value = string(value).lower() if valid_entity_id(value): return value - elif re.match(OLD_ENTITY_ID_VALIDATION, value): + if re.match(OLD_ENTITY_ID_VALIDATION, value): # To ease the breaking change, we allow old slugs for now # Remove after 0.94 or 1.0 fixed = '.'.join(util_slugify(part) for part in value.split('.', 1)) -- GitLab