mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Explicitly pass in the config_entry in supervisor coordinator init (#137472)
This commit is contained in:
parent
b0a82a9913
commit
bf0080cbb0
@ -295,6 +295,8 @@ def async_remove_addons_from_dev_reg(
|
|||||||
class HassioDataUpdateCoordinator(DataUpdateCoordinator):
|
class HassioDataUpdateCoordinator(DataUpdateCoordinator):
|
||||||
"""Class to retrieve Hass.io status."""
|
"""Class to retrieve Hass.io status."""
|
||||||
|
|
||||||
|
config_entry: ConfigEntry
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, hass: HomeAssistant, config_entry: ConfigEntry, dev_reg: dr.DeviceRegistry
|
self, hass: HomeAssistant, config_entry: ConfigEntry, dev_reg: dr.DeviceRegistry
|
||||||
) -> None:
|
) -> None:
|
||||||
@ -302,6 +304,7 @@ class HassioDataUpdateCoordinator(DataUpdateCoordinator):
|
|||||||
super().__init__(
|
super().__init__(
|
||||||
hass,
|
hass,
|
||||||
_LOGGER,
|
_LOGGER,
|
||||||
|
config_entry=config_entry,
|
||||||
name=DOMAIN,
|
name=DOMAIN,
|
||||||
update_interval=HASSIO_UPDATE_INTERVAL,
|
update_interval=HASSIO_UPDATE_INTERVAL,
|
||||||
# We don't want an immediate refresh since we want to avoid
|
# We don't want an immediate refresh since we want to avoid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user