From 7332c1d2625f93ed62d62b39078a5dad2fd5d89c Mon Sep 17 00:00:00 2001 From: Teemu Rytilahti Date: Sun, 2 Jun 2024 18:52:30 +0200 Subject: [PATCH] Await calls --- kasa/smart/modules/vacuum.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kasa/smart/modules/vacuum.py b/kasa/smart/modules/vacuum.py index 020d6864..e84b0ab2 100644 --- a/kasa/smart/modules/vacuum.py +++ b/kasa/smart/modules/vacuum.py @@ -93,7 +93,7 @@ class Vacuum(SmartModule): return await self.resume() # TODO: we need to create settings for clean_modes - return self.call( + return await self.call( "setSwitchClean", { "clean_mode": 0, @@ -113,7 +113,7 @@ class Vacuum(SmartModule): async def set_pause(self, enabled: bool) -> None: """Pause or resume cleaning.""" - return self.call("setRobotPause", {"pause": enabled}) + return await self.call("setRobotPause", {"pause": enabled}) async def return_home(self): """Return home.""" @@ -121,7 +121,7 @@ class Vacuum(SmartModule): async def set_return_home(self, enabled: bool) -> None: """Return home / pause returning.""" - return self.call("setSwitchCharge", {"switch_charge": enabled}) + return await self.call("setSwitchCharge", {"switch_charge": enabled}) @property def status(self) -> Status: