Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhaus committed Oct 25, 2023
1 parent 34b4662 commit bb01bc2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deebot_client/capabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class CapabilityClean:
count: CapabilitySet[CleanCountEvent, int] | None = None
log: CapabilityEvent[CleanLogEvent]
preference: CapabilitySetEnable[CleanPreferenceEvent] | None = None
work_mode: CapabilitySet[WorkModeEvent, WorkMode] | None = None
work_mode: CapabilitySetTypes[WorkModeEvent, WorkMode] | None = None


@dataclass(frozen=True)
Expand Down
13 changes: 12 additions & 1 deletion deebot_client/hardware/deebot/p1jij8.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
VolumeEvent,
WaterAmount,
WaterInfoEvent,
WorkMode,
WorkModeEvent,
)
from deebot_client.models import StaticDeviceInfo
Expand All @@ -106,7 +107,17 @@
preference=CapabilitySetEnable(
CleanPreferenceEvent, [GetCleanPreference()], SetCleanPreference
),
work_mode=CapabilitySet(WorkModeEvent, [GetWorkMode()], SetWorkMode),
work_mode=CapabilitySetTypes(
event=WorkModeEvent,
get=[GetWorkMode()],
set=SetWorkMode,
types=(
WorkMode.MOP,
WorkMode.MOP_AFTER_VACUUM,
WorkMode.VACUUM,
WorkMode.VACUUM_AND_MOP,
),
),
),
custom=CapabilityCustomCommand(
event=CustomCommandEvent, get=[], set=CustomCommand
Expand Down

0 comments on commit bb01bc2

Please sign in to comment.