mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
Explicitly pass in the config_entry in guardian coordinator (#137848)
explicitly pass in the config_entry in coordinator
This commit is contained in:
parent
de79fb26db
commit
78fce5112d
@ -42,6 +42,7 @@ class GuardianDataUpdateCoordinator(DataUpdateCoordinator[dict[str, Any]]):
|
|||||||
super().__init__(
|
super().__init__(
|
||||||
hass,
|
hass,
|
||||||
LOGGER,
|
LOGGER,
|
||||||
|
config_entry=entry,
|
||||||
name=f"{valve_controller_uid}_{api_name}",
|
name=f"{valve_controller_uid}_{api_name}",
|
||||||
update_interval=DEFAULT_UPDATE_INTERVAL,
|
update_interval=DEFAULT_UPDATE_INTERVAL,
|
||||||
)
|
)
|
||||||
@ -50,7 +51,6 @@ class GuardianDataUpdateCoordinator(DataUpdateCoordinator[dict[str, Any]]):
|
|||||||
self._api_lock = api_lock
|
self._api_lock = api_lock
|
||||||
self._client = client
|
self._client = client
|
||||||
|
|
||||||
self.config_entry = entry
|
|
||||||
self.signal_reboot_requested = SIGNAL_REBOOT_REQUESTED.format(
|
self.signal_reboot_requested = SIGNAL_REBOOT_REQUESTED.format(
|
||||||
self.config_entry.entry_id
|
self.config_entry.entry_id
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user