From 4ca4941c8265e7a880d03f4e0c3c97fca783358a Mon Sep 17 00:00:00 2001 From: Joseph Hughes Date: Sat, 16 Jan 2016 12:56:38 -0700 Subject: [PATCH] fix pylint errors in sensor/nest --- homeassistant/components/sensor/nest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/sensor/nest.py b/homeassistant/components/sensor/nest.py index fa2a245411c..040469d2e13 100644 --- a/homeassistant/components/sensor/nest.py +++ b/homeassistant/components/sensor/nest.py @@ -38,7 +38,9 @@ def setup_platform(hass, config, add_devices, discovery_info=None): for device in structure.devices: for variable in config['monitored_conditions']: if variable in SENSOR_TYPES: - add_devices([NestBasicSensor(structure, device, variable)]) + add_devices([NestBasicSensor(structure, + device, + variable)]) elif variable in SENSOR_TEMP_TYPES: add_devices([NestTempSensor(structure, device, @@ -78,6 +80,8 @@ class NestSensor(Entity): class NestBasicSensor(NestSensor): + """ Represents a basic Nest sensor with state. """ + @property def state(self): """ Returns the state of the sensor. """