Skip to content

Commit

Permalink
Encoding errors are now ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
vmakeev committed Jan 25, 2024
1 parent f166955 commit 5d99db6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/huawei_mesh_router/client/coreapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ async def wrapper(*args, **kwargs):
# ---------------------------
async def _get_response_text(response: ClientResponse) -> str:
content_bytes = await response.content.read()
text = content_bytes.decode("utf-8")
text = content_bytes.decode("utf-8", errors="ignore")
return text


Expand Down
2 changes: 1 addition & 1 deletion custom_components/huawei_mesh_router/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/vmakeev/huawei_mesh_router/issues",
"requirements": ["pycryptodome>=3.12.0"],
"version": "0.9.1"
"version": "0.9.1.1"
}

0 comments on commit 5d99db6

Please sign in to comment.