Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
Raised logging level by request #51 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulAnnekov committed Dec 7, 2020
1 parent 7c1c9b8 commit 189f8a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tuyaha/tuyaapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def _request(self, name, namespace, devId=None, payload={}):
(TUYACLOUDURL + "/homeassistant/skill").format(SESSION.region), json=data
)
except RequestsConnectionError as ex:
_LOGGER.debug(
_LOGGER.warning(
"request error, error code is %s, device %s",
ex,
devId,
Expand All @@ -268,7 +268,7 @@ def _request(self, name, namespace, devId=None, payload={}):
name, response_json["header"].get("msg", result_code), devId
)
else:
_LOGGER.debug(
_LOGGER.warning(
"control device error, error code is " + response_json["header"]["code"]
)
return response_json
Expand Down

0 comments on commit 189f8a0

Please sign in to comment.