mirror of
https://github.com/home-assistant/core.git
synced 2025-11-16 14:30:22 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user