From 08f8e713e6ee79cc4ce13b659e5fce7618f8b548 Mon Sep 17 00:00:00 2001 From: ClockeNessMnstr Date: Tue, 24 Sep 2024 21:15:30 -0400 Subject: [PATCH] await remove device (#63) /usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/mammotion.py:251: RuntimeWarning: coroutine 'MammotionDevices.remove_device' was never awaited self.devices.remove_device(name) --- pymammotion/mammotion/devices/mammotion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymammotion/mammotion/devices/mammotion.py b/pymammotion/mammotion/devices/mammotion.py index f483a18..2605eaf 100644 --- a/pymammotion/mammotion/devices/mammotion.py +++ b/pymammotion/mammotion/devices/mammotion.py @@ -248,7 +248,7 @@ async def login(self, account: str, password: str) -> CloudIOTGateway: return cloud_client def remove_device(self, name: str) -> None: - self.devices.remove_device(name) + await self.devices.remove_device(name) def get_device_by_name(self, name: str) -> MammotionMixedDeviceManager: return self.devices.get_device(name)