-
-
Notifications
You must be signed in to change notification settings - Fork 113
Add XML command "PlaySound" #574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe changes introduce a new command, Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant DeebotClient
participant PlaySound
User->>DeebotClient: Issue PlaySound Command
DeebotClient->>PlaySound: Initialize PlaySound with SID
PlaySound-->>DeebotClient: Sound Playback Execution
DeebotClient-->>User: Confirm Sound Played
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- deebot_client/commands/xml/init.py (2 hunks)
- deebot_client/commands/xml/play_sound.py (1 hunks)
Additional comments not posted (4)
deebot_client/commands/xml/play_sound.py (1)
8-9
: LGTM: The class correctly inherits fromExecuteCommand
and has a clear name.The code changes are approved.
deebot_client/commands/xml/__init__.py (3)
12-12
: LGTM!The code changes are approved.
25-25
: LGTM!The code changes are approved.
32-32
: LGTM!The code changes are approved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the CI
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## dev #574 +/- ##
==========================================
+ Coverage 87.33% 87.38% +0.04%
==========================================
Files 108 109 +1
Lines 3830 3845 +15
Branches 317 318 +1
==========================================
+ Hits 3345 3360 +15
Misses 427 427
Partials 58 58 ☔ View full report in Codecov by Sentry. |
1a8a220
to
5baf707
Compare
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add tests for the new command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @flubshi 👍
Add XML command "PlaySound". Similar to the JSON command, this plays hardcoded sound_id 30. Other sounds are possible via API, but not implemented.
Requires #560 to be merged before this PR, because it implementsExecuteCommand
incommon.py
.Summary by CodeRabbit
PlaySound
, enabling sound playback functionality within the application.