mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 06:05:10 +02:00
Sensor.emoncms: Never disable SSL verification.
This commit is contained in:
@@ -202,8 +202,7 @@ class EmonCmsData(object):
|
|||||||
"""Get the latest data."""
|
"""Get the latest data."""
|
||||||
try:
|
try:
|
||||||
req = requests.get(self._url, params={"apikey": self._apikey},
|
req = requests.get(self._url, params={"apikey": self._apikey},
|
||||||
verify=False, allow_redirects=True,
|
allow_redirects=True, timeout=5)
|
||||||
timeout=5)
|
|
||||||
except requests.exceptions.RequestException as exception:
|
except requests.exceptions.RequestException as exception:
|
||||||
_LOGGER.error(exception)
|
_LOGGER.error(exception)
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user