Skip to content

Commit 7aef39d

Browse files
flubshipentesttkr
authored andcommitted
Add XML command "PlaySound"
1 parent 7945282 commit 7aef39d

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

deebot_client/commands/xml/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from .charge_state import GetChargeState
1010
from .error import GetError
1111
from .fan_speed import GetFanSpeed
12+
from .play_sound import PlaySound
1213
from .pos import GetPos
1314
from .stats import GetCleanSum
1415

@@ -21,12 +22,14 @@
2122
"GetError",
2223
"GetFanSpeed",
2324
"GetPos",
25+
"PlaySound",
2426
]
2527

2628
# fmt: off
2729
# ordered by file asc
2830
_COMMANDS: list[type[XmlCommand]] = [
2931
GetError,
32+
PlaySound,
3033
]
3134
# fmt: on
3235

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""Play sound commands."""
2+
3+
from __future__ import annotations
4+
5+
from .common import ExecuteCommand
6+
7+
8+
class PlaySound(ExecuteCommand):
9+
"""Play sound command."""
10+
11+
name = "PlaySound"
12+
13+
def __init__(self) -> None:
14+
super().__init__({"sid": "30"})

0 commit comments

Comments
 (0)