Skip to content

Commit

Permalink
Stop warning from printing to console
Browse files Browse the repository at this point in the history
While this warning is important and helpful it causes error with Launcher's expecting STDOUT to be JSON only.
  • Loading branch information
Garulf committed Feb 22, 2023
1 parent f820d1e commit 61241db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/homeassistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
from functools import partial, wraps
import webbrowser
import logging
import urllib3
from urllib3.exceptions import InsecureRequestWarning

import requests
from requests.exceptions import ConnectionError, HTTPError

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"
Expand Down

0 comments on commit 61241db

Please sign in to comment.