Skip to content

Commit

Permalink
Fix linting error (home-assistant#20488)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohankapoorcom authored and balloob committed Jan 27, 2019
1 parent 86f5f02 commit 38c33bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/helpers/config_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 38c33bd

Please sign in to comment.