1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Improve generic event typing [EventComponentLoaded] (#114739)

This commit is contained in:
Marc Mueller
2024-04-06 14:18:03 +02:00
committed by GitHub
parent fa7da34298
commit e0f5559c8f
3 changed files with 7 additions and 4 deletions

View File

@@ -455,7 +455,7 @@ async def _async_setup_component( # noqa: C901
if domain in hass.data[DATA_SETUP]:
hass.data[DATA_SETUP].pop(domain)
hass.bus.async_fire(EVENT_COMPONENT_LOADED, {ATTR_COMPONENT: domain})
hass.bus.async_fire(EVENT_COMPONENT_LOADED, EventComponentLoaded(component=domain))
return True