diff --git a/setup.cfg b/setup.cfg index 63c7fd0..e6478fd 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 diff --git a/sonar-project.properties b/sonar-project.properties index f715c7f..1a24056 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -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=. diff --git a/src/wyzeapy/__init__.py b/src/wyzeapy/__init__.py index 00aaec3..eba488c 100644 --- a/src/wyzeapy/__init__.py +++ b/src/wyzeapy/__init__.py @@ -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()