Try to implement MQTT response - Need help on Lock #53
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Traceback (most recent call last):
File "E:\Nextcloud\GIT\PyMammotion\tests\login_and_mqtt_test.py", line 84, in
sync = event_loop.run_until_complete(sync_status_and_map(_devices_list[0]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PackardBell Power i5\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "E:\Nextcloud\GIT\PyMammotion\tests\login_and_mqtt_test.py", line 44, in sync_status_and_map
await cloud_device.start_map_sync()
File "E:\Nextcloud\GIT\PyMammotion\pymammotion\mammotion\devices\mammotion.py", line 325, in start_map_sync
await self._send_command_with_args("get_hash_response", total_frame=1, current_frame=1)
File "E:\Nextcloud\GIT\PyMammotion\pymammotion\mammotion\devices\mammotion.py", line 826, in _send_command_with_args
async with self._operation_lock:
File "C:\Users\PackardBell Power i5\AppData\Local\Programs\Python\Python312\Lib\asyncio\locks.py", line 14, in aenter
await self.acquire()
File "C:\Users\PackardBell Power i5\AppData\Local\Programs\Python\Python312\Lib\asyncio\locks.py", line 105, in acquire
fut = self._get_loop().create_future()
^^^^^^^^^^^^^^^^
File "C:\Users\PackardBell Power i5\AppData\Local\Programs\Python\Python312\Lib\asyncio\mixins.py", line 20, in _get_loop
raise RuntimeError(f'{self!r} is bound to a different event loop')
RuntimeError: <asyncio.locks.Lock object at 0x00000247FEA2AFC0 [unlocked, waiters:1]> is bound to a different event loop