Skip to content

Commit

Permalink
# need to close the connection as device not responding due to hung s…
Browse files Browse the repository at this point in the history
…tate (#48)
  • Loading branch information
AAlmarwani93 authored Aug 3, 2023
1 parent b4403bd commit edfcb25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyintesishome/intesisbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit edfcb25

Please sign in to comment.