diff --git a/pymammotion/http/http.py b/pymammotion/http/http.py index 824c77b..b494f61 100644 --- a/pymammotion/http/http.py +++ b/pymammotion/http/http.py @@ -31,7 +31,7 @@ async def get_all_error_codes(self) -> list[ErrorInfo]: reader = csv.DictReader(data.get("data", "").split("\n"), delimiter=",") codes = [] for row in reader: - codes.append(ErrorInfo(**cast(row, dict))) + codes.append(ErrorInfo(**cast(dict, row))) return codes async def oauth_check(self) -> None: