mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Explicitly pass in the config_entry in goodwe coordinator (#137838)
explicitly pass in the config_entry in coordinator
This commit is contained in:
parent
1179278d50
commit
7c9312b3cf
@ -19,6 +19,8 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
class GoodweUpdateCoordinator(DataUpdateCoordinator[dict[str, Any]]):
|
class GoodweUpdateCoordinator(DataUpdateCoordinator[dict[str, Any]]):
|
||||||
"""Gather data for the energy device."""
|
"""Gather data for the energy device."""
|
||||||
|
|
||||||
|
config_entry: ConfigEntry
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
@ -29,6 +31,7 @@ class GoodweUpdateCoordinator(DataUpdateCoordinator[dict[str, Any]]):
|
|||||||
super().__init__(
|
super().__init__(
|
||||||
hass,
|
hass,
|
||||||
_LOGGER,
|
_LOGGER,
|
||||||
|
config_entry=entry,
|
||||||
name=entry.title,
|
name=entry.title,
|
||||||
update_interval=SCAN_INTERVAL,
|
update_interval=SCAN_INTERVAL,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user