From 48d9897d4e6812dd80059a13245384990507a11d Mon Sep 17 00:00:00 2001 From: Joshua Mulliken Date: Thu, 17 Jun 2021 22:35:07 -0400 Subject: [PATCH] Fix typo --- setup.cfg | 2 +- sonar-project.properties | 2 +- src/wyzeapy/client.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.cfg b/setup.cfg index c08034c..812eedc 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 = joshua@mulliken.net description = Python client for private Wyze API diff --git a/sonar-project.properties b/sonar-project.properties index 30882e0..bde5ba4 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.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=. diff --git a/src/wyzeapy/client.py b/src/wyzeapy/client.py index 820a10e..64b3c83 100644 --- a/src/wyzeapy/client.py +++ b/src/wyzeapy/client.py @@ -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'] @@ -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