Skip to content

Commit 459f6d4

Browse files
committed
chore: mr comments
1 parent 5eb2e03 commit 459f6d4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

roborock/web_api.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import time
1010

1111
import aiohttp
12-
from aiohttp import ContentTypeError
12+
from aiohttp import ContentTypeError, FormData
1313

1414
from roborock.containers import HomeData, HomeDataRoom, ProductResponse, RRiot, UserData
1515
from roborock.exceptions import (
@@ -112,7 +112,6 @@ async def nc_prepare(self, user_data: UserData, timezone: str) -> dict:
112112
base_url = user_data.rriot.r.a
113113
prepare_request = PreparedRequest(base_url)
114114
hid = await self._get_home_id(user_data)
115-
from aiohttp import FormData
116115

117116
data = FormData()
118117
data.add_field("hid", hid)
@@ -138,7 +137,9 @@ async def nc_prepare(self, user_data: UserData, timezone: str) -> dict:
138137

139138
async def add_device(self, user_data: UserData, s: str, t: str) -> dict:
140139
"""This will add a new device to your account
141-
it is recommended to only use this if you know what you are doing."""
140+
it is recommended to only use this during a pairing cycle with a device.
141+
Please see here: https://github.com/Python-roborock/Roborockmitmproxy/blob/main/handshake_protocol.md
142+
"""
142143
if (
143144
user_data.rriot is None
144145
or user_data.rriot.r is None

0 commit comments

Comments
 (0)