Skip to content

Commit

Permalink
Merge pull request #66 from 2Fake/fix_disconnect
Browse files Browse the repository at this point in the history
Fix sync disconnect
  • Loading branch information
2Fake authored Nov 18, 2021
2 parents 2c8b3c2 + 7af809d commit a162144
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devolo_plc_api/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ async def async_disconnect(self) -> None:
self._connected = False

def disconnect(self) -> None:
""" Disconnect from a device asynchronous. """
self._loop.run_until_complete(self.async_disconnect())
""" Disconnect from a device synchronous. """
asyncio.gather(self.async_disconnect())
self._loop.close()

async def _get_device_info(self) -> None:
Expand Down
6 changes: 6 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### [v0.6.3] - 2021/11/18

### Fixed

- Disconncting from a device synchroniously works again

### [v0.6.2] - 2021/10/28

### Fixed
Expand Down

0 comments on commit a162144

Please sign in to comment.