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:
Trevor authored and Pascal Vizeli committed 2017-08-29 15:33:27 +02:00
1 parent 0de6a37822
commit 75559cb81f
3 files changed
+72 -15

No files matched your search

+1 -1
View File
@@ -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