diff --git a/plugin.json b/plugin.json index cc2f0fd..9e52fba 100644 --- a/plugin.json +++ b/plugin.json @@ -4,7 +4,7 @@ "Name": "HA-Commander", "Description": "Search, and interact with Home Assistant using Wox or Flow Launcher.", "Author": "Garulf", - "Version": "5.0.1", + "Version": "5.1.0", "Language": "python", "Website": "https://github.com/Garulf/HA-Commander", "IcoPath": "icons\\home-assistant.png", diff --git a/plugin/homeassistant.py b/plugin/homeassistant.py index ea88081..7c4b5c7 100644 --- a/plugin/homeassistant.py +++ b/plugin/homeassistant.py @@ -3,6 +3,8 @@ from functools import partial, wraps import webbrowser import logging +import urllib3 +from urllib3.exceptions import InsecureRequestWarning import requests from requests.exceptions import ConnectionError, HTTPError @@ -10,6 +12,8 @@ from icons import DEFAULT_ICONS log = logging.getLogger(__name__) +# This warning prints to stdout and is not catchable so we need to disable it +urllib3.disable_warnings(InsecureRequestWarning) COLORS_FILE = "./plugin/colors.json" META_FILE = "./meta.json"