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:
Paulus Schoutsen authored and GitHub committed 2020-02-11 09:40:50 -08:00
1 parent ecd7ec385d
commit 51c35ab9a8
6 files changed
+84 -7

No files matched your search

+2
View File
@@ -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