mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2025-01-22 21:41:26 +01:00
Remove unreachable code in connection (#702)
This commit is contained in:
parent
9edba66d30
commit
554190228e
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user