fix
This commit is contained in:
parent
f247d9131e
commit
0afcb5c94f
|
@ -22,6 +22,7 @@ SOCKET_ERRORS = (
|
|||
WRITE_EXCEPTIONS = (RuntimeError, ConnectionResetError, OSError)
|
||||
|
||||
_int = int
|
||||
_bytes = bytes
|
||||
|
||||
|
||||
class APIFrameHelper:
|
||||
|
@ -196,7 +197,7 @@ class APIFrameHelper:
|
|||
def resume_writing(self) -> None:
|
||||
"""Stub."""
|
||||
|
||||
def _write_bytes(self, data: bytes, debug_enabled: bool) -> None:
|
||||
def _write_bytes(self, data: _bytes, debug_enabled: bool) -> None:
|
||||
"""Write bytes to the socket."""
|
||||
if debug_enabled:
|
||||
_LOGGER.debug("%s: Sending frame: [%s]", self._log_name, data.hex())
|
||||
|
|
Loading…
Reference in New Issue