Allow overriding name via entity registry (#12292)
* Allow overriding name via entity registry * Update requirements
This commit is contained in:
parent
8b9eab196c
commit
17e5740a0c
11 changed files with 91 additions and 21 deletions
|
@ -213,6 +213,7 @@ class EntityPlatform(object):
|
|||
self.domain, self.platform_name, entity.unique_id,
|
||||
suggested_object_id=suggested_object_id)
|
||||
entity.entity_id = entry.entity_id
|
||||
entity.registry_name = entry.name
|
||||
|
||||
# We won't generate an entity ID if the platform has already set one
|
||||
# We will however make sure that platform cannot pick a registered ID
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue