move imports in statsd component (#27649)

This commit is contained in:
Michał Mrozek authored and Paulus Schoutsen committed 2019-10-14 14:19:37 -07:00
1 parent a49dbb9718
commit bcb14182c6
2 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -1,11 +1,12 @@
"""Support for sending data to StatsD."""
import logging
import statsd
import voluptuous as vol
from homeassistant.const import CONF_HOST, CONF_PORT, CONF_PREFIX, EVENT_STATE_CHANGED
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers import state as state_helper
import homeassistant.helpers.config_validation as cv
_LOGGER = logging.getLogger(__name__)
@@ -40,7 +41,6 @@ CONFIG_SCHEMA = vol.Schema(
def setup(hass, config):
"""Set up the StatsD component."""
import statsd
conf = config[DOMAIN]
host = conf.get(CONF_HOST)