Skip to content

Commit

Permalink
Managed missing ReadTimeout exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ollo69 committed May 12, 2020
1 parent 47a7cab commit d5a934a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions custom_components/smartthinq_sensors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def _restart_monitor(self):
_LOGGER.info("ThinQ Session expired. Refreshing.")
self._not_logged = True

except (reqExc.ConnectionError, reqExc.ConnectTimeout):
except (reqExc.ConnectionError, reqExc.ConnectTimeout, reqExc.ReadTimeout):
_LOGGER.error("Connection to ThinQ failed. Network connection error")
self._disconnected = True
self._not_logged = True
Expand Down Expand Up @@ -343,7 +343,7 @@ def device_update(self):
return
# time.sleep(1)

except (reqExc.ConnectionError, reqExc.ConnectTimeout):
except (reqExc.ConnectionError, reqExc.ConnectTimeout, reqExc.ReadTimeout):
_LOGGER.error("Connection to ThinQ failed. Network connection error")
self._not_logged = True
return
Expand Down
2 changes: 1 addition & 1 deletion custom_components/smartthinq_sensors/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Support to interface with LGE ThinQ Devices.
"""

__version__ = "0.4.4"
__version__ = "0.4.5"
PROJECT_URL = "https://github.com/ollo69/ha-smartthinq-sensors/"
ISSUE_URL = "{}issues".format(PROJECT_URL)

Expand Down

0 comments on commit d5a934a

Please sign in to comment.