From 5fa06c32cb6fff1096300d90366e8aafd30cb35e Mon Sep 17 00:00:00 2001 From: justinedelson Date: Sun, 8 Jul 2018 06:13:04 -0400 Subject: [PATCH] [Vizio] Replace logger configuration with simple flag (#5672) The Vizio component has an (to date) undocumented configuration flag which can be used to suppress the self-signed certificate warnings. IMO, this approach is preferable to the currently documented method of using the `logger` component, using a reverse proxy, or setting python environment variables. --- source/_components/media_player.vizio.markdown | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/source/_components/media_player.vizio.markdown b/source/_components/media_player.vizio.markdown index 1557b166492..12916a2ed3c 100644 --- a/source/_components/media_player.vizio.markdown +++ b/source/_components/media_player.vizio.markdown @@ -77,6 +77,7 @@ Configuration variables: - **host** (*Required*): IP address of your TV. - **access_token** (*Required*): Authentication token you received in the last step of the pairing process. +- **suppress_warning** (*Optional*): Set to `true` to disable self-signed certificate warnings. ## Notes and limitations @@ -91,13 +92,3 @@ Changing tracks works like channels switching. If you have source other than reg ### Sources Source list shows all external devices connected to the TV through HDMI plus list of internal devices (TV mode, Chrome Cast, etc.). - -

-Vizio SmartCast service is accessible through HTTPS with self-signed certificate. If you have low LOGLEVEL in your Home Assistant configuration, you'll see a lot of warnings like this: -`InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised.` - -You can adjust the log level for `media_player` components with the [logger](/components/logger/) component, or if you need to keep a low log level for `media_player` you could proxy calls to your TV through an NGINX reverse proxy. - -If you want to only ignore only this specific [python urllib3 SSL warning](https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings), you will need to run Home Assistant with the python flag `-W` or the environment variable `PYTHONWARNINGS` set to: -`ignore:Unverified HTTPS request is being made` -