Skip to content
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

Fix X2 Omni #552

Merged
merged 2 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deebot_client/commands/json/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def _get_args(self, action: CleanAction) -> dict[str, Any]:
match action:
case CleanAction.START:
content["type"] = CleanMode.AUTO.value
case CleanAction.STOP:
case CleanAction.STOP | CleanAction.PAUSE:
content["type"] = ""
return args

Expand Down
6 changes: 3 additions & 3 deletions deebot_client/hardware/deebot/e6ofmn.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
)
from deebot_client.commands.json.charge import Charge
from deebot_client.commands.json.charge_state import GetChargeState
from deebot_client.commands.json.clean import Clean, CleanArea, GetCleanInfo
from deebot_client.commands.json.clean import CleanV2, GetCleanInfoV2
from deebot_client.commands.json.clean_count import GetCleanCount, SetCleanCount
from deebot_client.commands.json.clean_logs import GetCleanLogs
from deebot_client.commands.json.clean_preference import (
Expand Down Expand Up @@ -112,7 +112,7 @@
battery=CapabilityEvent(BatteryEvent, [GetBattery()]),
charge=CapabilityExecute(Charge),
clean=CapabilityClean(
action=CapabilityCleanAction(command=Clean, area=CleanArea),
action=CapabilityCleanAction(command=CleanV2),
continuous=CapabilitySetEnable(
ContinuousCleaningEvent,
[GetContinuousCleaning()],
Expand Down Expand Up @@ -208,7 +208,7 @@
),
volume=CapabilitySet(VolumeEvent, [GetVolume()], SetVolume),
),
state=CapabilityEvent(StateEvent, [GetChargeState(), GetCleanInfo()]),
state=CapabilityEvent(StateEvent, [GetChargeState(), GetCleanInfoV2()]),
stats=CapabilityStats(
clean=CapabilityEvent(StatsEvent, [GetStats()]),
report=CapabilityEvent(ReportStatsEvent, []),
Expand Down