Explicitly pass in the config_entry in rainmachine coordinator (#137979)

explicitly pass in the config_entry in coordinator
This commit is contained in:
Michael 2025-02-09 15:46:12 +01:00 committed by GitHub
parent dacb29e7fc
commit d522af729a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,6 +41,7 @@ class RainMachineDataUpdateCoordinator(DataUpdateCoordinator[dict]):
super().__init__(
hass,
LOGGER,
config_entry=entry,
name=name,
update_interval=update_interval,
update_method=update_method,
@ -49,7 +50,6 @@ class RainMachineDataUpdateCoordinator(DataUpdateCoordinator[dict]):
self._rebooting = False
self._signal_handler_unsubs: list[Callable[[], None]] = []
self.config_entry = entry
self.signal_reboot_completed = SIGNAL_REBOOT_COMPLETED.format(
self.config_entry.entry_id
)