Skip to content

Commit 356f31b

Browse files
committed
chore: Fix lint errors found by co-pilot reviews
1 parent 91dbcfb commit 356f31b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

roborock/devices/traits/b01/q10/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async def close(self) -> None:
5656

5757
async def refresh(self) -> None:
5858
"""Refresh all traits."""
59-
# Ask for updates to speific DPS values. Updates will be received
59+
# Ask for updates to specific DPS values. Updates will be received
6060
# by the subscribe loop below.
6161
# For now we just ask for all DPS values that traits care about here
6262
# but this could be split out to give each trait its own refresh

roborock/devices/traits/b01/q10/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ def __init__(self, dps_type_map: dict[B01_Q10_DP, type], dps_field_map: dict[B01
5555
self._dps_field_map = dps_field_map
5656

5757
@classmethod
58-
def from_dataclass(cls, borockBase: type[RoborockBase]):
58+
def from_dataclass(cls, dataclass_type: type[RoborockBase]):
5959
"""Initialize the converter for a specific RoborockBase-derived class."""
6060
dps_type_map: dict[B01_Q10_DP, type] = {}
6161
dps_field_map: dict[B01_Q10_DP, str] = {}
62-
for field_obj in dataclasses.fields(borockBase):
62+
for field_obj in dataclasses.fields(dataclass_type):
6363
if field_obj.metadata and "dps" in field_obj.metadata:
6464
dps_id = field_obj.metadata["dps"]
6565
dps_type_map[dps_id] = field_obj.type

roborock/devices/traits/b01/q10/status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class StatusTrait(Q10Status):
1616
1717
This is a thin wrapper around Q10Status that provides the Trait interface.
1818
The current values reflect the most recently received data from the device.
19-
New values can be requited through the `Q10PropertiesApi`'s `refresh` method.`
19+
New values can be requited through the `Q10PropertiesApi`'s `refresh` method.
2020
"""
2121

2222
def update_from_dps(self, decoded_dps: dict) -> None:

tests/devices/traits/b01/q10/test_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
TEST_DATA_DIR = pathlib.Path("tests/protocols/testdata/b01_q10_protocol")
2121

2222
TESTDATA_DP_STATUS_DP_CLEAN_TASK_TYPE = (TEST_DATA_DIR / "dpStatus-dpCleanTaskType.json").read_bytes()
23-
TESTDATA_DP_REQUEST_DPS = (TEST_DATA_DIR / "dpRequestDps.json").read_bytes()
23+
TESTDATA_DP_REQUEST_DPS = (TEST_DATA_DIR / "dpRequetDps.json").read_bytes()
2424

2525

2626
@pytest.fixture

0 commit comments

Comments
 (0)