Skip to content

Commit

Permalink
Update instance method
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Mulliken committed Jun 29, 2021
1 parent 79ddf31 commit 1ffee44
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 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.10
version = 0.1.0-beta.11
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.10
sonar.projectVersion=0.1.0-beta.11

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.
Expand Down
7 changes: 4 additions & 3 deletions src/wyzeapy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ async def create(cls):
:return: An instance of the Wyzeapy class
"""
cls._client = Client("", "")
await cls._client.async_init()
return cls
self = cls()
self._client = Client("", "")
await self._client.async_init()
return self

async def async_close(self):
await self._client.async_close()
Expand Down

0 comments on commit 1ffee44

Please sign in to comment.