diff --git a/pyintesishome/intesisbase.py b/pyintesishome/intesisbase.py index 411ffcd..901a17a 100644 --- a/pyintesishome/intesisbase.py +++ b/pyintesishome/intesisbase.py @@ -87,6 +87,8 @@ async def _send_command(self, command: str): ) except asyncio.TimeoutError: print("oops took longer than 5s!") + # need to close the connection as device not responding due to hung state + self._writer.write.close() except OSError as exc: _LOGGER.error("%s Exception. %s / %s", type(exc), exc.args, exc)