mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +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),
|
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
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user