Skip to content

Commit da0336e

Browse files
committed
chore: fix typos
1 parent cc783d7 commit da0336e

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

roborock/devices/traits/v1/child_lock.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ def is_on(self) -> bool:
1919
async def enable(self) -> None:
2020
"""Enable the child lock."""
2121
await self.rpc_channel.send_command(RoborockCommand.SET_CHILD_LOCK_STATUS, params={_STATUS_PARAM: 1})
22-
# Optimistcally update state to avoid an extra refresh
22+
# Optimistic update to avoid an extra refresh
2323
self.lock_status = 1
2424

2525
async def disable(self) -> None:
2626
"""Disable the child lock."""
2727
await self.rpc_channel.send_command(RoborockCommand.SET_CHILD_LOCK_STATUS, params={_STATUS_PARAM: 0})
28-
# Optimistcally update state to avoid an extra refresh
28+
# Optimistic update to avoid an extra refresh
2929
self.lock_status = 0

roborock/devices/traits/v1/do_not_disturb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ async def enable(self) -> None:
3131
RoborockCommand.SET_DND_TIMER,
3232
params=self.as_list(),
3333
)
34-
# Optimistcally update state to avoid an extra refresh
34+
# Optimistic update to avoid an extra refresh
3535
self.enabled = 1
3636

3737
async def disable(self) -> None:
3838
"""Disable the Do Not Disturb (DND) timer settings of the device."""
3939
await self.rpc_channel.send_command(RoborockCommand.CLOSE_DND_TIMER)
40-
# Optimistcally update state to avoid an extra refresh
40+
# Optimistic update to avoid an extra refresh
4141
self.enabled = 0

roborock/devices/traits/v1/flow_led_status.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ def is_on(self) -> bool:
1919
async def enable(self) -> None:
2020
"""Enable the Flow LED status."""
2121
await self.rpc_channel.send_command(RoborockCommand.SET_FLOW_LED_STATUS, params={_STATUS_PARAM: 1})
22-
# Optimistcally update state to avoid an extra refresh
22+
# Optimistic update to avoid an extra refresh
2323
self.status = 1
2424

2525
async def disable(self) -> None:
2626
"""Disable the Flow LED status."""
2727
await self.rpc_channel.send_command(RoborockCommand.SET_FLOW_LED_STATUS, params={_STATUS_PARAM: 0})
28-
# Optimistcally update state to avoid an extra refresh
28+
# Optimistic update to avoid an extra refresh
2929
self.status = 0

roborock/devices/traits/v1/led_status.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ def is_on(self) -> bool:
1919
async def enable(self) -> None:
2020
"""Enable the LED status."""
2121
await self.rpc_channel.send_command(RoborockCommand.SET_LED_STATUS, params=[1])
22-
# Optimistcally update state to avoid an extra refresh
22+
# Optimistic update to avoid an extra refresh
2323
self.status = 1
2424

2525
async def disable(self) -> None:
2626
"""Disable the LED status."""
2727
await self.rpc_channel.send_command(RoborockCommand.SET_LED_STATUS, params=[0])
28-
# Optimistcally update state to avoid an extra refresh
28+
# Optimistic update to avoid an extra refresh
2929
self.status = 0
3030

3131
@classmethod

roborock/devices/traits/v1/valley_electricity_timer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ async def enable(self) -> None:
3232
RoborockCommand.SET_VALLEY_ELECTRICITY_TIMER,
3333
params=self.as_list(),
3434
)
35-
# Optimistcally update state to avoid an extra refresh
35+
# Optimistic update to avoid an extra refresh
3636
self.enabled = 1
3737

3838
async def disable(self) -> None:
3939
"""Disable the Valley Electricity Timer settings of the device."""
4040
await self.rpc_channel.send_command(
4141
RoborockCommand.CLOSE_VALLEY_ELECTRICITY_TIMER,
4242
)
43-
# Optimistcally update state to avoid an extra refresh
43+
# Optimistic update to avoid an extra refresh
4444
self.enabled = 0

0 commit comments

Comments
 (0)