From 686a820fca0b2ffdd13e92c8ac748c44899c4614 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 11 Aug 2024 18:36:21 -0500 Subject: [PATCH] Apply suggestions from code review --- aiohomekit/controller/ip/connection.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/aiohomekit/controller/ip/connection.py b/aiohomekit/controller/ip/connection.py index addd358c..24806ade 100644 --- a/aiohomekit/controller/ip/connection.py +++ b/aiohomekit/controller/ip/connection.py @@ -601,7 +601,6 @@ async def _connect_once(self) -> None: raise TimeoutError("Timeout") from last_exception raise ConnectionError(str(last_exception)) from last_exception - logger.debug("Connected established to %s:%s", self.hosts, self.port) # set keep-alive on the socket to ensure we detect dropped connections # since we don't send keep-alive packets ourselves sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) @@ -621,9 +620,7 @@ async def _connect_once(self) -> None: self.host_header = f"Host: [{connected_host}]" else: self.host_header = f"Host: {connected_host}" - if self.owner: - logger.debug("Connection made to %s:%s", self.hosts, self.port) await self.owner.connection_made(False) async def _reconnect(self) -> None: