Skip to content

Commit

Permalink
fix: call async_init() on client function
Browse files Browse the repository at this point in the history
For the async session to exist the client must call async_init() on the net_client
  • Loading branch information
Joshua Mulliken committed Jun 29, 2021
1 parent 3adc3d9 commit 1be88af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[metadata]
# replace with your username:
name = wyzeapy
version = 0.1.0-beta.7
version = 0.1.0-beta.8
author = Mulliken LLC
author_email = joshua@mulliken.net
description = Python client for private Wyze API
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sonar.organization=joshuamulliken

# This is the name and version displayed in the SonarCloud UI.
sonar.projectName=wyzeapy
sonar.projectVersion=0.1.0-beta.7
sonar.projectVersion=0.1.0-beta.8

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.
Expand Down
1 change: 1 addition & 0 deletions src/wyzeapy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ async def create(cls):
"""
self = Wyzeapy()
self._client = Client("", "")
await self._client.async_init()
return self

async def async_close(self):
Expand Down

0 comments on commit 1be88af

Please sign in to comment.