Skip to content

Commit c5dd1df

Browse files
committed
refactor(testing): use int(RoborockDyadDataProtocol.ID_QUERY) constant
1 parent be54217 commit c5dd1df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

roborock/testing/a01_simulator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ async def _handle_publish(self, message: RoborockMessage, channel: Any) -> None:
162162
updated_dps: dict[int, Any] = {}
163163

164164
# Check for query (ID_QUERY key = 10000)
165-
id_query_key = 10000
165+
id_query_key = int(RoborockDyadDataProtocol.ID_QUERY)
166166
if query_raw := decoded_dps.get(id_query_key):
167167
query_list: list[Any] = []
168168
if isinstance(query_raw, str):

0 commit comments

Comments
 (0)