Downgrade Sonarr and Radarr 'Host is not avaliable' errors to warnings (#12119)

This commit is contained in:
Timmo
2018-02-01 19:57:33 +00:00
committed by Fabian Affolter
parent be37bb14b7
commit 30ad591a59
2 changed files with 2 additions and 2 deletions

View File

@@ -162,7 +162,7 @@ class RadarrSensor(Entity):
self.ssl, self.host, self.port, self.urlbase, start, end), self.ssl, self.host, self.port, self.urlbase, start, end),
headers={'X-Api-Key': self.apikey}, timeout=10) headers={'X-Api-Key': self.apikey}, timeout=10)
except OSError: except OSError:
_LOGGER.error("Host %s is not available", self.host) _LOGGER.warning("Host %s is not available", self.host)
self._available = False self._available = False
self._state = None self._state = None
return return

View File

@@ -181,7 +181,7 @@ class SonarrSensor(Entity):
headers={'X-Api-Key': self.apikey}, headers={'X-Api-Key': self.apikey},
timeout=10) timeout=10)
except OSError: except OSError:
_LOGGER.error("Host %s is not available", self.host) _LOGGER.warning("Host %s is not available", self.host)
self._available = False self._available = False
self._state = None self._state = None
return return