Skip to content

Commit f756b1c

Browse files
Chris NeaveChris Neave
authored andcommitted
lint fixes from pre-commit
1 parent e6f9bdd commit f756b1c

File tree

5 files changed

+45
-45
lines changed

5 files changed

+45
-45
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ default_stages: [ commit ]
55

66
repos:
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v4.4.0
8+
rev: v4.5.0
99
hooks:
1010
- id: debug-statements
1111
- id: check-builtin-literals
@@ -18,29 +18,29 @@ repos:
1818
- id: end-of-file-fixer
1919
- id: trailing-whitespace
2020
- repo: https://github.com/python-poetry/poetry
21-
rev: 1.3.2
21+
rev: 1.7.0
2222
hooks:
2323
- id: poetry-check
2424
- repo: https://github.com/PyCQA/isort
2525
rev: 5.12.0
2626
hooks:
2727
- id: isort
2828
- repo: https://github.com/psf/black
29-
rev: 22.12.0
29+
rev: 23.11.0
3030
hooks:
3131
- id: black
3232
- repo: https://github.com/codespell-project/codespell
33-
rev: v2.2.2
33+
rev: v2.2.6
3434
hooks:
3535
- id: codespell
3636
- repo: https://github.com/charliermarsh/ruff-pre-commit
37-
rev: v0.0.260
37+
rev: v0.1.6
3838
hooks:
3939
- id: ruff
4040
args:
4141
- --fix
4242
- repo: https://github.com/pre-commit/mirrors-mypy
43-
rev: v1.2.0
43+
rev: v1.7.1
4444
hooks:
4545
- id: mypy
4646
exclude: cli.py

.vscode/launch.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
52
"version": "0.2.0",
63
"configurations": [
74
{
@@ -13,4 +10,4 @@
1310
"justMyCode": false
1411
}
1512
]
16-
}
13+
}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"esbonio.sphinx.confDir": ""
3-
}
3+
}

docs/source/api_commands.rst

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Description: Returns the current status of the vacuum
9797

9898
Parameters: None
9999

100-
Returns:
100+
Returns:
101101

102102
msg_ver:
103103

@@ -292,7 +292,7 @@ Roborock S8 Pro Ultra Yes
292292
====================== =========
293293

294294
app_charge
295-
~~~~~~~~~~
295+
~~~~~~~~~~
296296

297297
Description: This tells your vacuum to go back to the dock and charge.
298298

@@ -525,7 +525,7 @@ Description: Starts a zone clean
525525

526526
Parameters:
527527

528-
..
528+
..
529529
Us this the last known zone
530530
531531
Returns: ok or error
@@ -548,7 +548,10 @@ Parameters: An array of segments to clean. Each segment is an integer with the s
548548

549549
[{'segments': [18], 'repeat': 2}]
550550

551-
Comment: The segment id can be obtained from the inital data returneed on login ??
551+
.. Comment: The segment id can be obtained from the initial data returned on login
552+
553+
Command:
554+
roborock -d command --device_id deviceIdRedacted --cmd app_segment_clean --params '[{"segments": [17,19], "repeat": 2}]'
552555

553556
Returns ok or error
554557

@@ -570,7 +573,7 @@ Returns ok or error
570573
name_segment
571574
~~~~~~~~~~~~
572575

573-
Description:
576+
Description:
574577

575578
Parameters: To be determined
576579

@@ -584,7 +587,7 @@ resume_segment_clean
584587

585588
Description:
586589

587-
Parameters:
590+
Parameters:
588591

589592
====================== =========
590593
Vacuum Model Supported
@@ -595,7 +598,7 @@ Roborock S8 Pro Ultra Yes
595598
stop_segment_clean
596599
~~~~~~~~~~~~~~~~~~
597600

598-
Description:
601+
Description:
599602

600603
Parameters:
601604

@@ -794,10 +797,10 @@ Parameters: None
794797
..
795798
Not clear what this does
796799
797-
Returns:
798-
800+
Returns:
801+
799802
smart_wash: 0 is off, 1 is on
800-
803+
801804
wash_interval: The interval in seconds between washes
802805

803806
Example::
@@ -817,10 +820,10 @@ set_smart_wash_params
817820
Description: Sets the smartwash parameters
818821

819822
Parameters:
820-
823+
821824
smart_wash: 0 is off, 1 is on
822-
823-
wash_interval: The interval in seconds between washes
825+
826+
wash_interval: The interval in seconds between washes
824827

825828

826829
{'smart_wash': 0, 'wash_interval': 1200}
@@ -934,7 +937,7 @@ set_child_lock_status
934937

935938
Description: This sets the child lock status of the device.
936939

937-
Parameters: '{"lock_status" :0}'
940+
Parameters: '{"lock_status" :0}'
938941

939942
Returns: ok
940943

@@ -947,7 +950,7 @@ Roborock S8 Pro Ultra Yes
947950

948951

949952

950-
Consumables
953+
Consumables
951954
-----------
952955

953956
get_consumable
@@ -1092,7 +1095,7 @@ Parameters:
10921095
10931096

10941097

1095-
LEDs
1098+
LEDs
10961099
----
10971100

10981101
get_flow_led_status
@@ -1115,11 +1118,11 @@ get_led_status
11151118

11161119
Description: Returns the LED status. If disabled the indicator light will turn off 1 minute after fully charged
11171120

1118-
Parameters:
1121+
Parameters:
11191122

1120-
Returns:
1123+
Returns:
11211124

1122-
led_status: 0 is off, 1 is on
1125+
led_status: 0 is off, 1 is on
11231126

11241127

11251128
====================== =========
@@ -1141,7 +1144,7 @@ Parameters: ????
11411144

11421145

11431146

1144-
Maps
1147+
Maps
11451148
----
11461149

11471150
get_multi_map
@@ -1153,7 +1156,7 @@ Parameters:
11531156

11541157
Comment: Response timed out for S8 Pro Ultra
11551158

1156-
..
1159+
..
11571160
times out after 4 secs
11581161
11591162
get_multi_maps_list
@@ -1169,13 +1172,13 @@ Returns:
11691172
max_bak_map:
11701173
multi_map_count:
11711174
map_info::
1172-
1175+
11731176
mapFlag:
11741177
add_time:
11751178
length:
11761179
name:
11771180
bak_maps::
1178-
1181+
11791182
mapFlag:
11801183
add_time:
11811184

@@ -1193,7 +1196,7 @@ Roborock S8 Pro Ultra Yes
11931196
====================== =========
11941197

11951198
get_map_v1
1196-
~~~~~~~~~~
1199+
~~~~~~~~~~
11971200

11981201
Description: Returns the map
11991202

@@ -1216,7 +1219,7 @@ Parameters:
12161219
get_room_mapping
12171220
~~~~~~~~~~~~~~~~
12181221

1219-
Description: Returns a list of rooms, ids as discovered by
1222+
Description: Returns a list of rooms, ids as discovered by
12201223

12211224
Parameters: None
12221225

@@ -1272,7 +1275,7 @@ Example for S8 Pro Ultra::
12721275
deep_plus = 303
12731276
fast = 304
12741277
custom = 302
1275-
1278+
12761279
====================== =========
12771280
Vacuum Model Supported
12781281
====================== =========
@@ -1723,7 +1726,7 @@ set_timezone
17231726

17241727
Description: Sets the device's time zone
17251728

1726-
Parameters:
1729+
Parameters:
17271730

17281731

17291732

@@ -1739,7 +1742,7 @@ Description: Returns the volume of the sound played by the vacuum
17391742

17401743
Parameters: None
17411744

1742-
Returns:
1745+
Returns:
17431746

17441747
volume: The volume of the sound played by the vacuum
17451748

@@ -1812,7 +1815,7 @@ Parameters:
18121815
Return example::
18131816

18141817
{'sid_in_use': 122, 'sid_version': 1, 'sid_in_progress': 0, 'location': 'de', 'bom': 'A.03.0342', 'language': 'en', 'msg_ver': 2}
1815-
1818+
18161819
====================== =========
18171820
Vacuum Model Supported
18181821
====================== =========
@@ -1835,7 +1838,7 @@ get_valley_electricity_timer
18351838

18361839
Description: Get valley electricity timer.
18371840

1838-
Parameters: None
1841+
Parameters: None
18391842

18401843
Returns:
18411844

@@ -1865,7 +1868,7 @@ set_valley_electricity_timer
18651868

18661869
Description: Sets the valley electricity timer
18671870

1868-
Parameters:
1871+
Parameters:
18691872

18701873
start_hour: The hour you want valley electricity to start
18711874

@@ -1938,4 +1941,4 @@ Returns: ok or error
19381941
Vacuum Model Supported
19391942
====================== =========
19401943
Roborock S8 Pro Ultra Yes
1941-
====================== =========
1944+
====================== =========

docs/source/usage.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ To use Python-Roborock, first install it using pip:
1010
1111
(.venv) $ pip install python-roborock
1212
13-
Login
13+
Login
1414
-----
1515

1616
.. code-block:: console
17-
17+
1818
(.venv) $ roborock login --username username --password password
1919
2020
List devices

0 commit comments

Comments
 (0)