Entity Registry to store and restore name/icon (#31714)
* Entity Registry to store and restore name/icon * Update test_entity_registry.py * Add original name/icon to JSON result
This commit is contained in:
1 parent
ecd7ec385d
commit
51c35ab9a8
6 files changed
+84
-7
No files matched your search
@@ -369,6 +369,8 @@ class EntityPlatform:
|
||||
supported_features=entity.supported_features,
|
||||
device_class=entity.device_class,
|
||||
unit_of_measurement=entity.unit_of_measurement,
|
||||
original_name=entity.name,
|
||||
original_icon=entity.icon,
|
||||
)
|
||||
|
||||
entity.registry_entry = entry
|
||||
|
||||
Reference in new issue
Block a user