Fix handler

pull/130567/head
epenet 2024-11-21 15:58:38 +00:00
parent 0dbdf3b163
commit 6083179097
1 changed files with 2 additions and 2 deletions
homeassistant

View File

@ -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.