mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
Migrate discovery debouncer callback to async_fire_internal (#116078)
This commit is contained in:
parent
1120246194
commit
e9e401ae29
@ -1405,7 +1405,9 @@ class ConfigEntriesFlowManager(data_entry_flow.FlowManager[ConfigFlowResult]):
|
|||||||
@callback
|
@callback
|
||||||
def _async_discovery(self) -> None:
|
def _async_discovery(self) -> None:
|
||||||
"""Handle discovery."""
|
"""Handle discovery."""
|
||||||
self.hass.bus.async_fire(EVENT_FLOW_DISCOVERED)
|
# async_fire_internal is used here because this is only
|
||||||
|
# called from the Debouncer so we know the usage is safe
|
||||||
|
self.hass.bus.async_fire_internal(EVENT_FLOW_DISCOVERED)
|
||||||
persistent_notification.async_create(
|
persistent_notification.async_create(
|
||||||
self.hass,
|
self.hass,
|
||||||
title="New devices discovered",
|
title="New devices discovered",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user