Skip to content

Commit

Permalink
Merge pull request #19 from noahhusby/docs/examples
Browse files Browse the repository at this point in the history
Fix connection status
  • Loading branch information
noahhusby authored Sep 11, 2024
2 parents 5121e62 + f298226 commit 308e270
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aiostreammagic/stream_magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async def disconnect(self):

def is_connected(self) -> bool:
"""Return True if device is connected."""
return self.connect_task is not None and self.connect_task.done()
return self.connect_task is not None and not self.connect_task.done()

async def _ws_connect(self, uri):
"""Establish a connection with a WebSocket."""
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "aiostreammagic"
version = "2.2.4"
version = "2.2.5"
description = "An async python package for interfacing with Cambridge Audio / Stream Magic compatible streamers."
authors = ["Noah Husby <[email protected]>"]
maintainers = ["Noah Husby <[email protected]>"]
Expand Down

0 comments on commit 308e270

Please sign in to comment.