Skip to content

Commit d504132

Browse files
committed
fix: revet changes to future
1 parent 5a17e6f commit d504132

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

roborock/roborock_future.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ async def async_get(self, timeout: float | int) -> Any:
8080
"""Get the result from the future or raises an error."""
8181
try:
8282
async with async_timeout.timeout(timeout):
83-
response = await self.fut
84-
# This should be moved to the specific client that handles this
85-
# and set an exception directly rather than patching an exception here
86-
if response == "unknown_method":
87-
raise UnknownMethodError("Unknown method")
88-
return response
83+
return await self.fut
8984
finally:
9085
self.fut.cancel()

0 commit comments

Comments
 (0)