Explicitly pass in the config_entry in goodwe coordinator (#137838)
explicitly pass in the config_entry in coordinatorpull/137857/head
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…
Reference in New Issue