fix pylint errors for Nest Sensor

pull/893/head
Joseph Hughes 2016-01-14 11:37:17 -07:00
parent b8c8c71b78
commit a39148dd38
3 changed files with 7 additions and 4 deletions

View File

@ -25,6 +25,7 @@ BINARY_TYPES = ['fan',
'online']
def setup_platform(hass, config, add_devices, discovery_info=None):
"Setup nest binary sensors from config file"
logger = logging.getLogger(__name__)
try:
for structure in nest.NEST.structures:

View File

@ -6,14 +6,14 @@ Support for Nest Thermostat Sensors.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.nest/
"""
import logging
import socket
import homeassistant.components.nest as nest
from homeassistant.helpers.entity import Entity
from homeassistant.const import TEMP_CELCIUS
from homeassistant.helpers.temperature import convert
import homeassistant.components.nest as nest
import logging
import socket
DEPENDENCIES = ['nest']
SENSOR_TYPES = ['humidity',
'mode',
@ -30,6 +30,7 @@ SENSOR_TEMP_TYPES = ['temperature',
'away_temperature[1]']
def setup_platform(hass, config, add_devices, discovery_info=None):
"Setup Nest Sensor from config file"
logger = logging.getLogger(__name__)
try:
for structure in nest.NEST.structures:

View File

@ -17,6 +17,7 @@ import homeassistant.components.nest as nest
DEPENDENCIES = ['nest']
def setup_platform(hass, config, add_devices, discovery_info=None):
"Setup nest thermostat"
logger = logging.getLogger(__name__)
try: