From f1d22db009200bfe8445c6029192f6957590d4f7 Mon Sep 17 00:00:00 2001 From: Justin Bassett Date: Sat, 14 Dec 2019 01:36:12 -0500 Subject: [PATCH] Fix mobile app device identifiers (#29920) Fix identifiers when updating device registration. --- homeassistant/components/mobile_app/webhook.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/homeassistant/components/mobile_app/webhook.py b/homeassistant/components/mobile_app/webhook.py index 46f17b401bc..c2bc6c94112 100644 --- a/homeassistant/components/mobile_app/webhook.py +++ b/homeassistant/components/mobile_app/webhook.py @@ -190,10 +190,7 @@ async def handle_webhook( device_registry.async_get_or_create( config_entry_id=config_entry.entry_id, - identifiers={ - (ATTR_DEVICE_ID, registration[ATTR_DEVICE_ID]), - (CONF_WEBHOOK_ID, registration[CONF_WEBHOOK_ID]), - }, + identifiers={(DOMAIN, registration[ATTR_DEVICE_ID])}, manufacturer=new_registration[ATTR_MANUFACTURER], model=new_registration[ATTR_MODEL], name=new_registration[ATTR_DEVICE_NAME],