Skip to content

Commit 3362aac

Browse files
committed
fix: remove excluding ping from id check
1 parent 3a5874e commit 3362aac

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

roborock/api.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from .roborock_future import RoborockFuture
1919
from .roborock_message import (
2020
RoborockMessage,
21-
RoborockMessageProtocol,
2221
)
2322
from .util import get_next_int
2423

@@ -97,9 +96,7 @@ async def _wait_response(self, request_id: int, queue: RoborockFuture) -> Any:
9796

9897
def _async_response(self, request_id: int, protocol_id: int = 0) -> Any:
9998
queue = RoborockFuture(protocol_id)
100-
if request_id in self._waiting_queue and not (
101-
request_id == 2 and protocol_id == RoborockMessageProtocol.PING_REQUEST
102-
):
99+
if request_id in self._waiting_queue:
103100
new_id = get_next_int(10000, 32767)
104101
self._logger.warning(
105102
"Attempting to create a future with an existing id %s (%s)... New id is %s. "

0 commit comments

Comments
 (0)