Move imports in dht component (#27459)

* Move imports in dht component

* remove empty line

* Move imports for pushbullet component

* revert unwanted changes
pull/27559/head
Sébastien RAMAGE 2019-10-12 22:03:56 +02:00 committed by Paulus Schoutsen
parent 930b576685
commit 3b4e257214
1 changed files with 1 additions and 1 deletions

View File

@ -2,6 +2,7 @@
import logging
from datetime import timedelta
import Adafruit_DHT # pylint: disable=import-error
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
@ -50,7 +51,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the DHT sensor."""
import Adafruit_DHT # pylint: disable=import-error
SENSOR_TYPES[SENSOR_TEMPERATURE][1] = hass.config.units.temperature_unit
available_sensors = {