We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7eb00e0 + 6a30f21 commit b58a4f1Copy full SHA for b58a4f1
1 file changed
bydhvs/__init__.py
@@ -37,6 +37,7 @@ class BYDHVS:
37
MAX_CELLS = 160
38
MAX_TEMPS = 64
39
SLEEP_TIME = 4
40
+ READ_TIMEOUT = 15
41
42
def __init__(self, ip_address: str, port: int = 8080) -> None:
43
"""Initialize the BYDHVS communication class."""
@@ -250,7 +251,7 @@ async def _receive_response(self) -> Optional[bytes]:
250
251
if self._reader:
252
try:
253
data = await asyncio.wait_for(
- self._reader.read(1024), timeout=5
254
+ self._reader.read(1024), timeout=self.READ_TIMEOUT
255
)
256
_LOGGER.debug("Received: %s", data.hex())
257
return data
0 commit comments