Start energy load platform task eagerly (#113778)
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")
|
||||
|
||||
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] = {
|
||||
"cost_sensors": {},
|
||||
|
|
Loading…
Reference in New Issue