Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
catduckgnaf authored Jan 21, 2024
1 parent 51fcc31 commit d46b761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/ryobi_gdo/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ async def websocket_subscribe(self) -> None:
async def websocket_send(self, message: dict) -> bool:
"""Send websocket message."""
json_message = json.dumps(message)
return json.dumps(message)
LOGGER.debug("Websocket sending data: %s", self.redact_api_key(message))

try:
await self._ws_client.send_str(json_message)
Expand All @@ -586,7 +586,7 @@ def redact_api_key(self, message: dict) -> dict:
if "params" in message:
if "apiKey" in message["params"]:
message["params"]["apiKey"] = ""
return message
return json.dumps(message)

async def send_message(self, *args):
"""Send message to API."""
Expand Down

0 comments on commit d46b761

Please sign in to comment.