From 60831790970f47d014343f3f1ac338a33d6fa6c3 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 21 Nov 2024 15:58:38 +0000 Subject: [PATCH] Fix handler --- homeassistant/config_entries.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/config_entries.py b/homeassistant/config_entries.py index c7b694699d8..3df27f8cdc7 100644 --- a/homeassistant/config_entries.py +++ b/homeassistant/config_entries.py @@ -1486,7 +1486,7 @@ class ConfigEntriesFlowManager( result["handler"], flow.unique_id ) - if existing_entry is not None and self.handler != "mobile_app": + if existing_entry is not None and flow.handler != "mobile_app": # `mobile_app` does this on purpose report_usage( "creates a config entry when another entry with the same unique ID " @@ -1495,7 +1495,7 @@ class ConfigEntriesFlowManager( core_behavior=ReportBehavior.LOG, core_integration_behavior=ReportBehavior.LOG, custom_integration_behavior=ReportBehavior.IGNORE, - integration_domain=self.handler, + integration_domain=flow.handler, ) # Unload the entry before setting up the new one.