fix pylint errors for Nest Sensor
parent
b8c8c71b78
commit
a39148dd38
|
@ -25,6 +25,7 @@ BINARY_TYPES = ['fan',
|
||||||
'online']
|
'online']
|
||||||
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
|
"Setup nest binary sensors from config file"
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
try:
|
try:
|
||||||
for structure in nest.NEST.structures:
|
for structure in nest.NEST.structures:
|
||||||
|
|
|
@ -6,14 +6,14 @@ Support for Nest Thermostat Sensors.
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.nest/
|
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.helpers.entity import Entity
|
||||||
from homeassistant.const import TEMP_CELCIUS
|
from homeassistant.const import TEMP_CELCIUS
|
||||||
from homeassistant.helpers.temperature import convert
|
from homeassistant.helpers.temperature import convert
|
||||||
|
|
||||||
import homeassistant.components.nest as nest
|
|
||||||
import logging
|
|
||||||
import socket
|
|
||||||
|
|
||||||
DEPENDENCIES = ['nest']
|
DEPENDENCIES = ['nest']
|
||||||
SENSOR_TYPES = ['humidity',
|
SENSOR_TYPES = ['humidity',
|
||||||
'mode',
|
'mode',
|
||||||
|
@ -30,6 +30,7 @@ SENSOR_TEMP_TYPES = ['temperature',
|
||||||
'away_temperature[1]']
|
'away_temperature[1]']
|
||||||
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
|
"Setup Nest Sensor from config file"
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
try:
|
try:
|
||||||
for structure in nest.NEST.structures:
|
for structure in nest.NEST.structures:
|
||||||
|
|
|
@ -17,6 +17,7 @@ import homeassistant.components.nest as nest
|
||||||
DEPENDENCIES = ['nest']
|
DEPENDENCIES = ['nest']
|
||||||
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
|
"Setup nest thermostat"
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue