mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Fix linting error (#20488)
This commit is contained in:
parent
86f5f0226c
commit
38c33bd01e
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user