Skip to content

Commit

Permalink
fix: missing await and .keys() method (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 authored Jan 9, 2025
1 parent 1c7f795 commit 3fa2153
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion openevsehttp/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ async def _update_status(self, msgtype, data, error):
error,
)
self._ws_listening = False
self.ws_disconnect()
await self.ws_disconnect()

elif msgtype == "data":
_LOGGER.debug("Websocket data: %s", data)
Expand Down
2 changes: 1 addition & 1 deletion openevsehttp/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async def running(self):
msg = message.json()
msgtype = "data"
await self.callback(msgtype, msg, None)
if "pong" in msg.keys:
if "pong" in msg.keys():
self._pong = datetime.datetime.now()

elif message.type == aiohttp.WSMsgType.CLOSED:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

PROJECT_DIR = Path(__file__).parent.resolve()
README_FILE = PROJECT_DIR / "README.md"
VERSION = "0.1.68"
VERSION = "0.1.69"

setup(
name="python_openevse_http",
Expand Down

0 comments on commit 3fa2153

Please sign in to comment.