Skip to content

Commit

Permalink
await remove device
Browse files Browse the repository at this point in the history
 /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)
  • Loading branch information
ClockeNessMnstr authored Sep 24, 2024
1 parent 2b72f29 commit d83b637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymammotion/mammotion/devices/mammotion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d83b637

Please sign in to comment.