mirror of
https://github.com/elisspace/core.git
synced 2026-09-01 08:53:56 +00:00
Handle timeouts gracefully (#24752)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import logging
|
||||
from datetime import timedelta
|
||||
|
||||
import requests
|
||||
import voluptuous as vol
|
||||
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
@@ -371,6 +372,9 @@ class ThermostatData:
|
||||
except TypeError:
|
||||
_LOGGER.error("Error when getting homestatus.")
|
||||
return
|
||||
except requests.exceptions.Timeout:
|
||||
_LOGGER.warning("Timed out when connecting to Netatmo server.")
|
||||
return
|
||||
_LOGGER.debug("Following is the debugging output for homestatus:")
|
||||
_LOGGER.debug(self.homestatus.rawData)
|
||||
for room in self.homestatus.rooms:
|
||||
|
||||
Reference in New Issue
Block a user