Skip to content

Commit

Permalink
fix json.load error
Browse files Browse the repository at this point in the history
  • Loading branch information
jalcaras authored and jalcaras committed Apr 26, 2023
1 parent 5aa013e commit 3868fc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/weback_vacuum/webackapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ async def send_http(url, **params):
# Server status OK
_LOGGER.debug("WebackApi : Send HTTP OK, return=200")
_LOGGER.debug("WebackApi : HTTP data received = %s", req.json())
return json.load(req.json())
return req.json()
# Server status NOK
_LOGGER.warning(
"WebackApi : Bad server response (status code=%s) retry... (%s/%s)",
Expand Down

0 comments on commit 3868fc7

Please sign in to comment.