Move imports in dht component (#27459)
* Move imports in dht component * remove empty line * Move imports for pushbullet component * revert unwanted changespull/27559/head
parent
930b576685
commit
3b4e257214
|
@ -2,6 +2,7 @@
|
||||||
import logging
|
import logging
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
|
import Adafruit_DHT # pylint: disable=import-error
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
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):
|
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||||
"""Set up the DHT sensor."""
|
"""Set up the DHT sensor."""
|
||||||
import Adafruit_DHT # pylint: disable=import-error
|
|
||||||
|
|
||||||
SENSOR_TYPES[SENSOR_TEMPERATURE][1] = hass.config.units.temperature_unit
|
SENSOR_TYPES[SENSOR_TEMPERATURE][1] = hass.config.units.temperature_unit
|
||||||
available_sensors = {
|
available_sensors = {
|
||||||
|
|
Loading…
Reference in New Issue