Skip to content

Commit a4b3b01

Browse files
committed
chore: abort bad merges
1 parent 3b36cef commit a4b3b01

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

roborock/devices/traits/v1/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class V1TraitMixin(ABC):
3838
command: ClassVar[RoborockCommand]
3939

4040
@classmethod
41-
def _parse_type_response(cls, response: V1ResponseData) -> Self:
41+
def _parse_type_response(cls, response: V1ResponseData) -> RoborockBase:
4242
"""Parse the response from the device into a a RoborockBase.
4343
4444
Subclasses should override this method to implement custom parsing
@@ -53,7 +53,7 @@ def _parse_type_response(cls, response: V1ResponseData) -> Self:
5353
raise ValueError(f"Unexpected {cls} response format: {response!r}")
5454
return cls.from_dict(response)
5555

56-
def _parse_response(self, response: V1ResponseData) -> Self:
56+
def _parse_response(self, response: V1ResponseData) -> RoborockBase:
5757
"""Parse the response from the device into a a RoborockBase.
5858
5959
This is used by subclasses that want to override the class

tests/protocols/test_v1_protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def test_create_map_response_decoder_invalid_endpoint(caplog: pytest.LogCaptureF
209209

210210
decoder = create_map_response_decoder(SECURITY_DATA)
211211
assert decoder(message) is None
212-
assert "Received map response not requested by this device, ignoring." in caplog.text
212+
assert "Received map response requested not made by this device, ignoring." in caplog.text
213213

214214

215215
def test_create_map_response_decoder_invalid_payload():

0 commit comments

Comments
 (0)