Skip to content

Commit

Permalink
Reboot KLF200 on disconnect (#366)
Browse files Browse the repository at this point in the history
* Get version control for updates

* Fix version info

* Update comment.
  • Loading branch information
pawlizio committed Feb 19, 2024
1 parent 65c74db commit a6d391b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyvlx/pyvlx.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ async def disconnect(self) -> None:
except (OSError, PyVLXException):
pass
await self.heartbeat.stop()
# Reboot KLF200 when disconnecting to avoid unresponsive KLF200.
await self.klf200.reboot()
self.connection.disconnect()

async def load_nodes(self, node_id: Optional[int] = None) -> None:
Expand Down

0 comments on commit a6d391b

Please sign in to comment.