mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Rename bus._async_fire to bus.async_fire_internal (#116027)
This commit is contained in:
@@ -707,7 +707,10 @@ class AutomationEntity(BaseAutomationEntity, RestoreEntity):
|
||||
|
||||
@callback
|
||||
def started_action() -> None:
|
||||
self.hass.bus.async_fire(
|
||||
# This is always a callback from a coro so there is no
|
||||
# risk of this running in a thread which allows us to use
|
||||
# async_fire_internal
|
||||
self.hass.bus.async_fire_internal(
|
||||
EVENT_AUTOMATION_TRIGGERED, event_data, context=trigger_context
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user