Remove unreachable code in connection (#702)

This commit is contained in:
J. Nick Koston 2023-11-25 08:10:37 -06:00 committed by GitHub
parent 9edba66d30
commit 554190228e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -449,9 +449,6 @@ class APIConnection:
def _async_send_keep_alive(self) -> None:
"""Send a keep alive message."""
if not self.is_connected:
return
loop = self._loop
now = loop.time()
@ -491,8 +488,6 @@ class APIConnection:
def _async_pong_not_received(self) -> None:
"""Ping not received."""
if not self.is_connected:
return
if self._debug_enabled:
_LOGGER.debug(
"%s: Ping response not received after %s seconds",