diff --git a/frigidaire/__init__.py b/frigidaire/__init__.py index 8437c91..1f981bf 100644 --- a/frigidaire/__init__.py +++ b/frigidaire/__init__.py @@ -6,9 +6,14 @@ import json import logging import requests +import urllib3 import uuid import time +# Frigidaire uses a self-signed certificate, which forces us to disable SSL verification +# To keep our logs free of spam, we disable warnings on insecure requests +urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) + API_URL = 'https://api.latam.ecp.electrolux.com' CLIENT_ID = 'e9c4ac73-e94e-4b37-b1fe-b956f568daa0' diff --git a/setup.py b/setup.py index 26f2ee3..3d78b64 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setuptools.setup( name='frigidaire', - version='0.10', + version='0.11', author="Brian Marks", description="Python API for the Frigidaire 2.0 App", license="MIT", diff --git a/test.py b/test.py index c19a9e5..9d2cffd 100644 --- a/test.py +++ b/test.py @@ -1,6 +1,6 @@ import logging -from frigidaire import Action, Power, Mode, FanSpeed, Frigidaire +from frigidaire import Action, Power, Mode, FanSpeed, Frigidaire, HaclCode, Component if __name__ == '__main__': logging.basicConfig(level=logging.DEBUG)