Skip to content

Commit 2263190

Browse files
chore: linting
1 parent 0e214cd commit 2263190

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

roborock/api.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ async def request(self, method: str, url: str, params=None, data=None, headers=N
7777
_headers = {**self.base_headers, **(headers or {})}
7878
async with aiohttp.ClientSession() as session:
7979
async with session.request(
80-
method,
81-
_url,
82-
params=params,
83-
data=data,
84-
headers=_headers,
80+
method,
81+
_url,
82+
params=params,
83+
data=data,
84+
headers=_headers,
8585
) as resp:
8686
return await resp.json()
8787

@@ -173,7 +173,7 @@ def on_connection_lost(self, exc: Optional[Exception]) -> None:
173173
def should_keepalive(self) -> bool:
174174
now = self.time_func()
175175
# noinspection PyUnresolvedReferences
176-
if now - self._last_disconnection > self.keep_alive ** 2 and now - self._last_device_msg_in > self.keep_alive:
176+
if now - self._last_disconnection > self.keep_alive**2 and now - self._last_device_msg_in > self.keep_alive:
177177
return False
178178
return True
179179

@@ -194,10 +194,10 @@ async def _async_response(self, request_id: int, protocol_id: int = 0) -> tuple[
194194
del self._waiting_queue[request_id]
195195

196196
def _get_payload(
197-
self,
198-
method: RoborockCommand,
199-
params: Optional[list | dict] = None,
200-
secured=False,
197+
self,
198+
method: RoborockCommand,
199+
params: Optional[list | dict] = None,
200+
secured=False,
201201
):
202202
timestamp = math.floor(time.time())
203203
request_id = randint(10000, 99999)

roborock/local_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from . import DeviceData
1111
from .api import COMMANDS_SECURED, QUEUE_TIMEOUT, RoborockClient
1212
from .exceptions import CommandVacuumError, RoborockConnectionException, RoborockException
13-
from .protocol import AP_CONFIG, MessageParser
13+
from .protocol import MessageParser
1414
from .roborock_message import RoborockMessage
1515
from .roborock_typing import CommandInfoMap, RoborockCommand
1616
from .util import get_running_loop_or_create_one

0 commit comments

Comments
 (0)