mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Enable eager_start for weather platform update (#115496)
This commit is contained in:
parent
0bd4064212
commit
d9617a8e3a
@ -1163,7 +1163,7 @@ class CoordinatorWeatherEntity(
|
|||||||
assert coordinator.config_entry is not None
|
assert coordinator.config_entry is not None
|
||||||
getattr(self, f"_handle_{forecast_type}_forecast_coordinator_update")()
|
getattr(self, f"_handle_{forecast_type}_forecast_coordinator_update")()
|
||||||
coordinator.config_entry.async_create_task(
|
coordinator.config_entry.async_create_task(
|
||||||
self.hass, self.async_update_listeners((forecast_type,)), eager_start=False
|
self.hass, self.async_update_listeners((forecast_type,))
|
||||||
)
|
)
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
@ -1273,5 +1273,5 @@ class SingleCoordinatorWeatherEntity(
|
|||||||
super()._handle_coordinator_update()
|
super()._handle_coordinator_update()
|
||||||
assert self.coordinator.config_entry
|
assert self.coordinator.config_entry
|
||||||
self.coordinator.config_entry.async_create_task(
|
self.coordinator.config_entry.async_create_task(
|
||||||
self.hass, self.async_update_listeners(None), eager_start=False
|
self.hass, self.async_update_listeners(None)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user