mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +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."""
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user