mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Explicitly pass in the config_entry in octoprint coordinator (#138056)
explicitly pass in the config_entry in coordinator
This commit is contained in:
parent
f464aee33a
commit
282c2c6a29
@ -39,10 +39,10 @@ class OctoprintDataUpdateCoordinator(DataUpdateCoordinator):
|
|||||||
super().__init__(
|
super().__init__(
|
||||||
hass,
|
hass,
|
||||||
_LOGGER,
|
_LOGGER,
|
||||||
|
config_entry=config_entry,
|
||||||
name=f"octoprint-{config_entry.entry_id}",
|
name=f"octoprint-{config_entry.entry_id}",
|
||||||
update_interval=timedelta(seconds=interval),
|
update_interval=timedelta(seconds=interval),
|
||||||
)
|
)
|
||||||
self.config_entry = config_entry
|
|
||||||
self._octoprint = octoprint
|
self._octoprint = octoprint
|
||||||
self._printer_offline = False
|
self._printer_offline = False
|
||||||
self.data = {"printer": None, "job": None, "last_read_time": None}
|
self.data = {"printer": None, "job": None, "last_read_time": None}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user