From c6849b20919d81eb101bd0d41557f86def4cefe4 Mon Sep 17 00:00:00 2001 From: Tomaae <23486452+tomaae@users.noreply.github.com> Date: Thu, 14 Nov 2024 08:40:07 +0100 Subject: [PATCH] Update sensor.py --- custom_components/truenas/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/truenas/sensor.py b/custom_components/truenas/sensor.py index 37acc92..eddfe03 100644 --- a/custom_components/truenas/sensor.py +++ b/custom_components/truenas/sensor.py @@ -147,7 +147,7 @@ async def start(self) -> None: self.coordinator.api.query, f"cloudsync/id/{self._data['id']}/sync", "post" ) - async def abort(self) -> None: + async def stop(self) -> None: """Abort cloudsync job.""" tmp_job = await self.hass.async_add_executor_job( self.coordinator.api.query, f"cloudsync/id/{self._data['id']}"