Move imports in shiftr component (#28097)

pull/28095/merge
Diefferson Koderer Môro 2019-10-22 05:32:37 +00:00 committed by Paulus Schoutsen
parent d9cb9601aa
commit 953f31dd55
1 changed files with 3 additions and 4 deletions

View File

@ -1,16 +1,17 @@
"""Support for Shiftr.io."""
import logging
import paho.mqtt.client as mqtt
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.const import (
CONF_PASSWORD,
CONF_USERNAME,
EVENT_STATE_CHANGED,
EVENT_HOMEASSISTANT_STOP,
EVENT_STATE_CHANGED,
)
from homeassistant.helpers import state as state_helper
import homeassistant.helpers.config_validation as cv
_LOGGER = logging.getLogger(__name__)
@ -33,8 +34,6 @@ CONFIG_SCHEMA = vol.Schema(
def setup(hass, config):
"""Initialize the Shiftr.io MQTT consumer."""
import paho.mqtt.client as mqtt
conf = config[DOMAIN]
username = conf.get(CONF_USERNAME)
password = conf.get(CONF_PASSWORD)