Use core constants for helpers (#46240)
This commit is contained in:
parent
00bbf8c3a2
commit
c2302784c2
12 changed files with 1 additions and 18 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue