Explicitly pass in the config_entry in octoprint coordinator (#138056)

explicitly pass in the config_entry in coordinator
This commit is contained in:
Michael 2025-02-09 14:24:43 +01:00 committed by GitHub
parent f464aee33a
commit 282c2c6a29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,10 +39,10 @@ class OctoprintDataUpdateCoordinator(DataUpdateCoordinator):
super().__init__(
hass,
_LOGGER,
config_entry=config_entry,
name=f"octoprint-{config_entry.entry_id}",
update_interval=timedelta(seconds=interval),
)
self.config_entry = config_entry
self._octoprint = octoprint
self._printer_offline = False
self.data = {"printer": None, "job": None, "last_read_time": None}