Add "status" to Sonarr sensor (#9204)
* Use X-Api-Key header * Increase timeout * Add "status" to Sonarr sensor * Update test_sonarr.py * Update test_sonarr.py * Update test_sonarr.py * Update sonarr.py * Update sonarr.py
This commit is contained in:
parent
0de6a37822
commit
75559cb81f
3 changed files with 72 additions and 15 deletions
|
@ -162,7 +162,7 @@ class RadarrSensor(Entity):
|
|||
res = requests.get(
|
||||
ENDPOINTS[self.type].format(
|
||||
self.ssl, self.host, self.port, self.urlbase, start, end),
|
||||
headers={'X-Api-Key': self.apikey}, timeout=5)
|
||||
headers={'X-Api-Key': self.apikey}, timeout=10)
|
||||
except OSError:
|
||||
_LOGGER.error("Host %s is not available", self.host)
|
||||
self._available = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue