Skip to content

Commit

Permalink
Update homeassistant/components/netatmo/sensor.py
Browse files Browse the repository at this point in the history
Co-authored-by: Shay Levy <levyshay1@gmail.com>
  • Loading branch information
cgtobi and thecode committed Jan 31, 2022
1 parent d10abc8 commit 1000000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/netatmo/sensor.py
Expand Up @@ -839,7 +839,7 @@ def async_update_callback(self) -> None:
elif self.entity_description.key == "guststrength":
data = self._data.get_latest_gust_strengths()

if data is None or data == {}:
if not data:
if self.available:
_LOGGER.error(
"No station provides %s data in the area %s",
Expand Down

0 comments on commit 1000000

Please sign in to comment.