Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move vizio imports at top-level #29046

Merged
merged 1 commit into from Nov 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 3 additions & 4 deletions homeassistant/components/vizio/media_player.py
Expand Up @@ -2,11 +2,12 @@
from datetime import timedelta
import logging

import voluptuous as vol
from pyvizio import Vizio
from requests.packages import urllib3
import voluptuous as vol

from homeassistant import util
from homeassistant.components.media_player import MediaPlayerDevice, PLATFORM_SCHEMA
from homeassistant.components.media_player import PLATFORM_SCHEMA, MediaPlayerDevice
from homeassistant.components.media_player.const import (
SUPPORT_NEXT_TRACK,
SUPPORT_PREVIOUS_TRACK,
Expand Down Expand Up @@ -110,8 +111,6 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
return

if config[CONF_SUPPRESS_WARNING]:
from requests.packages import urllib3

_LOGGER.warning(
"InsecureRequestWarning is disabled "
"because of Vizio platform configuration"
Expand Down