Skip to content

Commit

Permalink
fix: Add sensor service to Wyzeapy
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Mulliken committed Jun 29, 2021
1 parent 22b5b81 commit 3adc3d9
Show file tree
Hide file tree
Showing 3 changed files with 9 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.6
version = 0.1.0-beta.7
author = Mulliken LLC
author_email = [email protected]
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.6
sonar.projectVersion=0.1.0-beta.7

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.
Expand Down
7 changes: 7 additions & 0 deletions src/wyzeapy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def __init__(self):
self._thermostat_service = None
self._hms_service = None
self._lock_service = None
self._sensor_service = None

@classmethod
async def create(cls):
Expand Down Expand Up @@ -88,3 +89,9 @@ async def lock_service(self) -> LockService:
if self._lock_service is None:
self._lock_service = LockService(self._client)
return self._lock_service

@property
async def sensor_service(self) -> SensorService:
if self._sensor_service is None:
self._sensor_service = SensorService(self._client)
return self._sensor_service

0 comments on commit 3adc3d9

Please sign in to comment.