mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 13:15:18 +02:00
Downgrade Sonarr and Radarr 'Host is not avaliable' errors to warnings (#12119)
This commit is contained in:
@@ -162,7 +162,7 @@ class RadarrSensor(Entity):
|
||||
self.ssl, self.host, self.port, self.urlbase, start, end),
|
||||
headers={'X-Api-Key': self.apikey}, timeout=10)
|
||||
except OSError:
|
||||
_LOGGER.error("Host %s is not available", self.host)
|
||||
_LOGGER.warning("Host %s is not available", self.host)
|
||||
self._available = False
|
||||
self._state = None
|
||||
return
|
||||
|
@@ -181,7 +181,7 @@ class SonarrSensor(Entity):
|
||||
headers={'X-Api-Key': self.apikey},
|
||||
timeout=10)
|
||||
except OSError:
|
||||
_LOGGER.error("Host %s is not available", self.host)
|
||||
_LOGGER.warning("Host %s is not available", self.host)
|
||||
self._available = False
|
||||
self._state = None
|
||||
return
|
||||
|
Reference in New Issue
Block a user