Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Mulliken committed Jun 18, 2021
1 parent 9eef746 commit 48d9897
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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.0.31-beta.14
version = 0.0.31-beta.15
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.0.31-beta.14
sonar.projectVersion=0.0.31-beta.15

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.
Expand Down
4 changes: 2 additions & 2 deletions src/wyzeapy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ async def get_cached_latest_event(self, device: Device) -> Optional[Event]:
current_update_time = time.time() # Time value to check if the current value is fresh

if self._latest_events is None or current_update_time - self._last_event_update > self.event_update_interval:
_LOGGER.debug(f"Sensor: Refreshing information")
_LOGGER.debug(f"Event: Refreshing information")

start_time = time.time()
raw_events = (await self.net_client.get_full_event_list(10))['data']['event_list']
Expand All @@ -276,7 +276,7 @@ async def get_cached_latest_event(self, device: Device) -> Optional[Event]:
self.event_update_interval = (sum(self.previous_event_update_times) / len(
self.previous_event_update_times)) + BLINK_TIME # Freshness calculation

_LOGGER.debug(f"Sensor: Update interval: {self.event_update_interval}")
_LOGGER.debug(f"Event: Update interval: {self.event_update_interval}")

self._last_event_update = current_update_time

Expand Down

0 comments on commit 48d9897

Please sign in to comment.