Skip to content

Commit 231973c

Browse files
authored
Capabilities should not depend on JSON commands (#896)
1 parent 6ba5d91 commit 231973c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

deebot_client/capabilities.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@
6060

6161
from _typeshed import DataclassInstance
6262

63-
from deebot_client.command import Command
63+
from deebot_client.command import Command, CommandWithMessageHandling
6464
from deebot_client.commands import StationAction
65-
from deebot_client.commands.json.common import ExecuteCommand
6665
from deebot_client.events.efficiency_mode import EfficiencyMode, EfficiencyModeEvent
6766
from deebot_client.models import CleanAction, CleanMode
6867

@@ -100,7 +99,7 @@ class CapabilityEvent(Generic[_EVENT]):
10099
class CapabilitySet(CapabilityEvent[_EVENT], Generic[_EVENT, _P]):
101100
"""Capability setCommand with event."""
102101

103-
set: Callable[_P, ExecuteCommand]
102+
set: Callable[_P, CommandWithMessageHandling]
104103

105104

106105
@dataclass(frozen=True)

0 commit comments

Comments
 (0)