Use HA public util slugify() to generate the entity name. The previous approach was working properly, even though it was relying on an internal mechanic where the entity name is normalized and then used as entity_id.
With this change we're explicit in how the format is.
Testing:
Add testing to ensure we don't have __ (as it happens in snake-case) when there is a space in the name.
Extra Notes (optional):
n/a
Checklist
[x] Related issues and proposed changes are filled
[x] Tests are defining the correct and expected behavior
Related Issues
Proposed Changes:
Use HA public util
slugify()
to generate the entity name. The previous approach was working properly, even though it was relying on an internal mechanic where the entity name is normalized and then used asentity_id
.With this change we're explicit in how the format is.
Testing:
Add testing to ensure we don't have
__
(as it happens in snake-case) when there is a space in the name.Extra Notes (optional):
n/a
Checklist