Skip to content

Commit

Permalink
Minor change on device init
Browse files Browse the repository at this point in the history
  • Loading branch information
ollo69 committed May 2, 2020
1 parent a2ad756 commit 8c2ce8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_components/smartthinq_sensors/wideq/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,8 +723,9 @@ def device_poll(self, snapshot_key=""):
either a `Status` object or `None` if the status is not yet
available.
"""
if not self._model_info:
return None

# load device info at first call if not loaded before
self.init_device_info()

# ThinQ V2 - Monitor data is with device info
if not self._should_poll:
Expand Down

0 comments on commit 8c2ce8c

Please sign in to comment.