Skip to content

Commit 38b6872

Browse files
committed
chore: fix syntax and lint errors
1 parent df23c0c commit 38b6872

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

roborock/devices/traits/v1/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ def __init__(
9797
trait._rpc_channel = rpc_channel
9898

9999

100+
101+
100102
def create(
101103
product: HomeDataProduct,
102104
home_data: HomeData,

tests/devices/traits/v1/test_command.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ async def test_send_command_success(command_trait: CommandTrait) -> None:
2727
result = await command_trait.send(RoborockCommand.APP_START)
2828

2929
# Verify the result
30-
assert result == {'result': '
31-
"ok"}
30+
assert result == {"result": "ok"}
3231

3332
# Verify the RPC call was made correctly
3433
mock_rpc_channel.send_command.assert_called_once_with(RoborockCommand.APP_START, params=None)
@@ -45,7 +44,7 @@ async def test_send_command_with_params(command_trait: CommandTrait) -> None:
4544
result = await command_trait.send(RoborockCommand.APP_SEGMENT_CLEAN, params)
4645

4746
# Verify the result
48-
assert result == {'result': "ok"}
47+
assert result == {"result": "ok"}
4948

5049
# Verify the RPC call was made correctly
5150
mock_rpc_channel.send_command.assert_called_once_with(RoborockCommand.APP_SEGMENT_CLEAN, params=params)

0 commit comments

Comments
 (0)