mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 02:07:09 +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()
|
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…
x
Reference in New Issue
Block a user