Skip to content

Commit eb49e16

Browse files
committed
Update comment
1 parent 79b5ada commit eb49e16

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

homeassistant/config_entries.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -1487,8 +1487,12 @@ async def async_finish_flow(
14871487
)
14881488

14891489
if existing_entry is not None and flow.handler != "mobile_app":
1490-
# This causes the old entry to be removed and replaced when it
1491-
# should most likely update the previous entry and abort the flow
1490+
# This causes the old entry to be removed and replaced, when the flow
1491+
# should instead be aborted.
1492+
# In case of manual flows, integrations should implement options, reauth,
1493+
# reconfigure to allow the user to change settings.
1494+
# In case of non user visible flows, the integration should optionally
1495+
# update the existing entry before aborting.
14921496
# see https://developers.home-assistant.io/blog/2024/11/22/config-flow-unique-id/
14931497
report_usage(
14941498
"creates a config entry when another entry with the same unique ID "

0 commit comments

Comments
 (0)