mirror of
https://github.com/home-assistant/core.git
synced 2026-08-03 20:24:55 +02:00
Use modern device registry API for device move in xbox
This commit is contained in:
@@ -163,9 +163,8 @@ async def async_migrate_entry(hass: HomeAssistant, entry: XboxConfigEntry) -> bo
|
||||
if device := dev_reg.async_get_device({(DOMAIN, friend.xuid)}):
|
||||
dev_reg.async_update_device(
|
||||
device.id,
|
||||
remove_config_entry_id=entry.entry_id,
|
||||
add_config_subentry_id=subentry.subentry_id,
|
||||
add_config_entry_id=entry.entry_id,
|
||||
new_config_entry_id=entry.entry_id,
|
||||
new_config_subentry_id=subentry.subentry_id,
|
||||
)
|
||||
if device := dev_reg.async_get_device({(DOMAIN, "xbox_live")}):
|
||||
dev_reg.async_update_device(
|
||||
|
||||
Reference in New Issue
Block a user