Fix linting error (#20488)

This commit is contained in:
Rohan Kapoor 2019-01-26 17:11:09 -08:00 committed by Paulus Schoutsen
parent 234c759b45
commit fe47253f68

View file

@ -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))