Use core constants for helpers (#46240)

This commit is contained in:
tkdrob 2021-02-08 16:53:17 -05:00 committed by GitHub
parent 00bbf8c3a2
commit c2302784c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 1 additions and 18 deletions

View file

@ -65,7 +65,6 @@ def async_generate_entity_id(
hass: Optional[HomeAssistant] = None,
) -> str:
"""Generate a unique entity ID based on given entity IDs or used IDs."""
name = (name or DEVICE_DEFAULT_NAME).lower()
preferred_string = entity_id_format.format(slugify(name))