mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Explicitly pass in the config_entry in omnilogic coordinator init (#137466)
explicitly pass in the config_entry in coordinator init
This commit is contained in:
parent
ab80770252
commit
0248252906
@ -18,6 +18,8 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
class OmniLogicUpdateCoordinator(DataUpdateCoordinator[dict[tuple, dict[str, Any]]]):
|
class OmniLogicUpdateCoordinator(DataUpdateCoordinator[dict[tuple, dict[str, Any]]]):
|
||||||
"""Class to manage fetching update data from single endpoint."""
|
"""Class to manage fetching update data from single endpoint."""
|
||||||
|
|
||||||
|
config_entry: ConfigEntry
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
@ -28,11 +30,11 @@ class OmniLogicUpdateCoordinator(DataUpdateCoordinator[dict[tuple, dict[str, Any
|
|||||||
) -> None:
|
) -> None:
|
||||||
"""Initialize the global Omnilogic data updater."""
|
"""Initialize the global Omnilogic data updater."""
|
||||||
self.api = api
|
self.api = api
|
||||||
self.config_entry = config_entry
|
|
||||||
|
|
||||||
super().__init__(
|
super().__init__(
|
||||||
hass=hass,
|
hass=hass,
|
||||||
logger=_LOGGER,
|
logger=_LOGGER,
|
||||||
|
config_entry=config_entry,
|
||||||
name=name,
|
name=name,
|
||||||
update_interval=timedelta(seconds=polling_interval),
|
update_interval=timedelta(seconds=polling_interval),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user