Expose the ability to move an entity/device between config entries (#56661)

pull/56703/head
J. Nick Koston 2021-09-26 11:50:57 -05:00 committed by GitHub
parent e35e584b60
commit f74291ccb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -332,6 +332,7 @@ class DeviceRegistry:
new_identifiers: set[tuple[str, str]] | UndefinedType = UNDEFINED,
sw_version: str | None | UndefinedType = UNDEFINED,
via_device_id: str | None | UndefinedType = UNDEFINED,
add_config_entry_id: str | UndefinedType = UNDEFINED,
remove_config_entry_id: str | UndefinedType = UNDEFINED,
disabled_by: str | None | UndefinedType = UNDEFINED,
suggested_area: str | None | UndefinedType = UNDEFINED,
@ -347,6 +348,7 @@ class DeviceRegistry:
new_identifiers=new_identifiers,
sw_version=sw_version,
via_device_id=via_device_id,
add_config_entry_id=add_config_entry_id,
remove_config_entry_id=remove_config_entry_id,
disabled_by=disabled_by,
suggested_area=suggested_area,

View File

@ -381,6 +381,7 @@ class EntityRegistry:
*,
name: str | None | UndefinedType = UNDEFINED,
icon: str | None | UndefinedType = UNDEFINED,
config_entry_id: str | None | UndefinedType = UNDEFINED,
area_id: str | None | UndefinedType = UNDEFINED,
new_entity_id: str | UndefinedType = UNDEFINED,
new_unique_id: str | UndefinedType = UNDEFINED,
@ -391,6 +392,7 @@ class EntityRegistry:
entity_id,
name=name,
icon=icon,
config_entry_id=config_entry_id,
area_id=area_id,
new_entity_id=new_entity_id,
new_unique_id=new_unique_id,