Move imports to top for datadog (#29440)

This commit is contained in:
springstan 2019-12-05 06:23:17 +01:00 committed by Paulus Schoutsen
parent 2773328134
commit 4c0f73a2b9

View file

@ -1,6 +1,7 @@
"""Support for sending data to Datadog."""
import logging
from datadog import initialize, statsd
import voluptuous as vol
from homeassistant.const import (
@ -42,7 +43,6 @@ CONFIG_SCHEMA = vol.Schema(
def setup(hass, config):
"""Set up the Datadog component."""
from datadog import initialize, statsd
conf = config[DOMAIN]
host = conf.get(CONF_HOST)