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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user