Skip to content

Commit 250d5fc

Browse files
chore: linting
1 parent fea34d6 commit 250d5fc

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

roborock/api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
CleanRecord,
2323
CleanSummary,
2424
Consumable,
25-
DNDTimer,
2625
DeviceData,
26+
DnDTimer,
2727
DustCollectionMode,
2828
HomeData,
2929
ModelStatus,
@@ -232,11 +232,11 @@ async def get_status(self) -> Status | None:
232232

233233
return None
234234

235-
async def get_dnd_timer(self) -> DNDTimer | None:
235+
async def get_dnd_timer(self) -> DnDTimer | None:
236236
try:
237237
dnd_timer = await self.send_command(RoborockCommand.GET_DND_TIMER)
238238
if isinstance(dnd_timer, dict):
239-
return DNDTimer.from_dict(dnd_timer)
239+
return DnDTimer.from_dict(dnd_timer)
240240
except RoborockTimeout as e:
241241
_LOGGER.error(e)
242242
return None

roborock/containers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ class S8ProUltraStatus(Status):
315315

316316

317317
@dataclass
318-
class DNDTimer(RoborockBase):
318+
class DnDTimer(RoborockBase):
319319
start_hour: Optional[int] = None
320320
start_minute: Optional[int] = None
321321
end_hour: Optional[int] = None

roborock/roborock_typing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
CleanRecord,
99
CleanSummary,
1010
Consumable,
11-
DNDTimer,
11+
DnDTimer,
1212
DustCollectionMode,
1313
SmartWashParams,
1414
Status,
@@ -314,7 +314,7 @@ class DockSummary:
314314
@dataclass
315315
class DeviceProp:
316316
status: Optional[Status] = None
317-
dnd_timer: Optional[DNDTimer] = None
317+
dnd_timer: Optional[DnDTimer] = None
318318
clean_summary: Optional[CleanSummary] = None
319319
consumable: Optional[Consumable] = None
320320
last_clean_record: Optional[CleanRecord] = None

tests/test_containers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from roborock import CleanRecord, CleanSummary, Consumable, DNDTimer, HomeData, S7MaxVStatus, UserData
1+
from roborock import CleanRecord, CleanSummary, Consumable, DnDTimer, HomeData, S7MaxVStatus, UserData
22
from roborock.code_mappings import (
33
RoborockDockErrorCode,
44
RoborockDockTypeCode,
@@ -157,7 +157,7 @@ def test_status():
157157

158158

159159
def test_dnd_timer():
160-
dnd = DNDTimer.from_dict(DND_TIMER)
160+
dnd = DnDTimer.from_dict(DND_TIMER)
161161
assert dnd.start_hour == 22
162162
assert dnd.start_minute == 0
163163
assert dnd.end_hour == 7

0 commit comments

Comments
 (0)