mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Explicitly pass in the config_entry in teslemetry coordinator (#138102)
explicitly pass in the config_entry in coordinator
This commit is contained in:
parent
233f6416f2
commit
974e1c17d6
@ -94,6 +94,7 @@ class TeslemetryEnergySiteLiveCoordinator(DataUpdateCoordinator[dict[str, Any]])
|
||||
super().__init__(
|
||||
hass,
|
||||
LOGGER,
|
||||
config_entry=config_entry,
|
||||
name="Teslemetry Energy Site Live",
|
||||
update_interval=ENERGY_LIVE_INTERVAL,
|
||||
)
|
||||
@ -139,6 +140,7 @@ class TeslemetryEnergySiteInfoCoordinator(DataUpdateCoordinator[dict[str, Any]])
|
||||
super().__init__(
|
||||
hass,
|
||||
LOGGER,
|
||||
config_entry=config_entry,
|
||||
name="Teslemetry Energy Site Info",
|
||||
update_interval=ENERGY_INFO_INTERVAL,
|
||||
)
|
||||
@ -173,6 +175,7 @@ class TeslemetryEnergyHistoryCoordinator(DataUpdateCoordinator[dict[str, Any]]):
|
||||
super().__init__(
|
||||
hass,
|
||||
LOGGER,
|
||||
config_entry=config_entry,
|
||||
name=f"Teslemetry Energy History {api.energy_site_id}",
|
||||
update_interval=ENERGY_HISTORY_INTERVAL,
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user