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)