mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
Await calls
This commit is contained in:
parent
bf27844534
commit
7332c1d262
@ -93,7 +93,7 @@ class Vacuum(SmartModule):
|
|||||||
return await self.resume()
|
return await self.resume()
|
||||||
|
|
||||||
# TODO: we need to create settings for clean_modes
|
# TODO: we need to create settings for clean_modes
|
||||||
return self.call(
|
return await self.call(
|
||||||
"setSwitchClean",
|
"setSwitchClean",
|
||||||
{
|
{
|
||||||
"clean_mode": 0,
|
"clean_mode": 0,
|
||||||
@ -113,7 +113,7 @@ class Vacuum(SmartModule):
|
|||||||
|
|
||||||
async def set_pause(self, enabled: bool) -> None:
|
async def set_pause(self, enabled: bool) -> None:
|
||||||
"""Pause or resume cleaning."""
|
"""Pause or resume cleaning."""
|
||||||
return self.call("setRobotPause", {"pause": enabled})
|
return await self.call("setRobotPause", {"pause": enabled})
|
||||||
|
|
||||||
async def return_home(self):
|
async def return_home(self):
|
||||||
"""Return home."""
|
"""Return home."""
|
||||||
@ -121,7 +121,7 @@ class Vacuum(SmartModule):
|
|||||||
|
|
||||||
async def set_return_home(self, enabled: bool) -> None:
|
async def set_return_home(self, enabled: bool) -> None:
|
||||||
"""Return home / pause returning."""
|
"""Return home / pause returning."""
|
||||||
return self.call("setSwitchCharge", {"switch_charge": enabled})
|
return await self.call("setSwitchCharge", {"switch_charge": enabled})
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def status(self) -> Status:
|
def status(self) -> Status:
|
||||||
|
Loading…
Reference in New Issue
Block a user