We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44c72a3 commit 602d247Copy full SHA for 602d247
custom_components/ocpp/api.py
@@ -856,14 +856,14 @@ async def stop(self):
856
"""Close connection and cancel ongoing tasks."""
857
self.status = STATE_UNAVAILABLE
858
if self._connection.open:
859
- _LOGGER.debug(f"Closing websocket: '{self._connection.id}'")
+ _LOGGER.debug(f"Closing websocket to '{self.id}'")
860
await self._connection.close()
861
for task in self.tasks:
862
task.cancel()
863
864
async def reconnect(self, connection: websockets.server.WebSocketServerProtocol):
865
"""Reconnect charge point."""
866
- _LOGGER.debug(f"Reconnect {connection.id}")
+ _LOGGER.debug(f"Reconnect websocket to {self.id}")
867
868
await self.stop()
869
self.status = STATE_OK
0 commit comments