mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-11-22 12:05:12 +01:00
Remove unreachable code in noise frame helper (#682)
This commit is contained in:
parent
c21e32fda7
commit
39aba56958
@ -288,9 +288,6 @@ class APINoiseFrameHelper(APIFrameHelper):
|
||||
|
||||
Packets are in the format of tuple[protobuf_type, protobuf_data]
|
||||
"""
|
||||
if self._state != NOISE_STATE_READY:
|
||||
raise HandshakeAPIError(f"{self._log_name}: Noise connection is not ready")
|
||||
|
||||
if TYPE_CHECKING:
|
||||
assert self._encrypt is not None, "Handshake should be complete"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user