Explicitly pass in the config_entry in omnilogic coordinator init (#137466)

explicitly pass in the config_entry in coordinator init
pull/136460/head
Michael 2025-02-05 21:57:41 +01:00 committed by GitHub
parent ab80770252
commit 0248252906
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,8 @@ _LOGGER = logging.getLogger(__name__)
class OmniLogicUpdateCoordinator(DataUpdateCoordinator[dict[tuple, dict[str, Any]]]):
"""Class to manage fetching update data from single endpoint."""
config_entry: ConfigEntry
def __init__(
self,
hass: HomeAssistant,
@ -28,11 +30,11 @@ class OmniLogicUpdateCoordinator(DataUpdateCoordinator[dict[tuple, dict[str, Any
) -> None:
"""Initialize the global Omnilogic data updater."""
self.api = api
self.config_entry = config_entry
super().__init__(
hass=hass,
logger=_LOGGER,
config_entry=config_entry,
name=name,
update_interval=timedelta(seconds=polling_interval),
)