mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Move imports to top for datadog (#29440)
This commit is contained in:
parent
2773328134
commit
4c0f73a2b9
@ -1,6 +1,7 @@
|
|||||||
"""Support for sending data to Datadog."""
|
"""Support for sending data to Datadog."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from datadog import initialize, statsd
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
@ -42,7 +43,6 @@ CONFIG_SCHEMA = vol.Schema(
|
|||||||
|
|
||||||
def setup(hass, config):
|
def setup(hass, config):
|
||||||
"""Set up the Datadog component."""
|
"""Set up the Datadog component."""
|
||||||
from datadog import initialize, statsd
|
|
||||||
|
|
||||||
conf = config[DOMAIN]
|
conf = config[DOMAIN]
|
||||||
host = conf.get(CONF_HOST)
|
host = conf.get(CONF_HOST)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user