Fix linting error (#20488)
This commit is contained in:
parent
234c759b45
commit
fe47253f68
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ def entity_id(value: Any) -> str:
|
||||||
value = string(value).lower()
|
value = string(value).lower()
|
||||||
if valid_entity_id(value):
|
if valid_entity_id(value):
|
||||||
return 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
|
# To ease the breaking change, we allow old slugs for now
|
||||||
# Remove after 0.94 or 1.0
|
# Remove after 0.94 or 1.0
|
||||||
fixed = '.'.join(util_slugify(part) for part in value.split('.', 1))
|
fixed = '.'.join(util_slugify(part) for part in value.split('.', 1))
|
||||||
|
|
Loading…
Add table
Reference in a new issue