Sensor.emoncms: Never disable SSL verification.

This commit is contained in:
Paulus Schoutsen 2016-10-01 23:12:58 -07:00
parent 9f8acbec95
commit d5ab292ff3

View File

@ -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