mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +00:00
Start energy load platform task eagerly (#113778)
This commit is contained in:
parent
f51ac30b5a
commit
00f94feec9
@ -29,7 +29,8 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
frontend.async_register_built_in_panel(hass, DOMAIN, DOMAIN, "mdi:lightning-bolt")
|
frontend.async_register_built_in_panel(hass, DOMAIN, DOMAIN, "mdi:lightning-bolt")
|
||||||
|
|
||||||
hass.async_create_task(
|
hass.async_create_task(
|
||||||
discovery.async_load_platform(hass, Platform.SENSOR, DOMAIN, {}, config)
|
discovery.async_load_platform(hass, Platform.SENSOR, DOMAIN, {}, config),
|
||||||
|
eager_start=True,
|
||||||
)
|
)
|
||||||
hass.data[DOMAIN] = {
|
hass.data[DOMAIN] = {
|
||||||
"cost_sensors": {},
|
"cost_sensors": {},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user