Skip to content

Commit

Permalink
Forgot to start the updater thread
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Mulliken committed Jun 30, 2021
1 parent abdf02b commit fc94ba0
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.18
version = 0.1.0-beta.19
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.18
sonar.projectVersion=0.1.0-beta.19

# 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/services/sensor_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ async def register_for_updates(self, sensor: Sensor, callback: Callable[[Sensor]
_LOGGER.debug(f"Registering sensor: {sensor.nickname} for updates")
if not self._updater_thread:
self._updater_thread = Thread(target=self.update_worker, daemon=True)
self._updater_thread.start()

self._subscribers.append((sensor, callback))

Expand Down

0 comments on commit fc94ba0

Please sign in to comment.