Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
fix syntax error and update style.
Browse files Browse the repository at this point in the history
  • Loading branch information
vlebourl committed Sep 14, 2023
1 parent 41b7d19 commit 62ea7fd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions custom_components/vesync/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,13 @@ def native_value(self):
quality = self.smarthumidifier.details[key]
if isinstance(quality, (int, float)):
return quality
_LOGGER.warn("Got non numeric value for AQI sensor from '%s' for %s: %s", key, self.name, quality)
_LOGGER.warn("No air quality value found in '%s'", self.name")
_LOGGER.warn(
"Got non numeric value for AQI sensor from '%s' for %s: %s",
key,
self.name,
quality,
)
_LOGGER.warn("No air quality value found in '%s'", self.name)
return None


Expand Down

0 comments on commit 62ea7fd

Please sign in to comment.