mirror of
https://github.com/home-assistant/core.git
synced 2026-04-27 05:16:51 +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:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user