1
0
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:
J. Nick Koston
2024-04-23 22:28:31 +02:00
committed by GitHub
parent 31d11b2362
commit a22c221722
5 changed files with 32 additions and 20 deletions

View File

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