Update docstings

pull/1016/head
Fabian Affolter 2016-01-27 09:34:14 +01:00
parent 2248c271fa
commit c750f16275
4 changed files with 9 additions and 5 deletions

View File

@ -1,4 +1,6 @@
""" """
homeassistant.components.input_boolean
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Component to keep track of user controlled booleans for within automation. Component to keep track of user controlled booleans for within automation.
For more details about this component, please refer to the documentation For more details about this component, please refer to the documentation

View File

@ -3,7 +3,7 @@ homeassistant.components.insteon
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Support for Insteon Hub. Support for Insteon Hub.
For more details about this platform, please refer to the documentation at For more details about this component, please refer to the documentation at
https://home-assistant.io/components/insteon/ https://home-assistant.io/components/insteon/
""" """
import logging import logging

View File

@ -1,6 +1,6 @@
""" """
homeassistant.components.rpi_gpio homeassistant.components.rpi_gpio
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Allows to control the GPIO pins of a Raspberry Pi. Allows to control the GPIO pins of a Raspberry Pi.
For more details about this platform, please refer to the documentation at For more details about this platform, please refer to the documentation at

View File

@ -1,6 +1,6 @@
""" """
homeassistant.components.sensor.nest homeassistant.components.sensor.nest
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Support for Nest Thermostat Sensors. 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
@ -30,7 +30,7 @@ SENSOR_TEMP_TYPES = ['temperature',
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" """ Setup Nest Sensor. """
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
try: try:
@ -85,11 +85,11 @@ class NestBasicSensor(NestSensor):
@property @property
def state(self): def state(self):
""" Returns the state of the sensor. """ """ Returns the state of the sensor. """
return getattr(self.device, self.variable) return getattr(self.device, self.variable)
@property @property
def unit_of_measurement(self): def unit_of_measurement(self):
""" Unit the value is expressed in. """
return SENSOR_UNITS.get(self.variable, None) return SENSOR_UNITS.get(self.variable, None)
@ -98,10 +98,12 @@ class NestTempSensor(NestSensor):
@property @property
def unit_of_measurement(self): def unit_of_measurement(self):
""" Unit the value is expressed in. """
return TEMP_CELCIUS return TEMP_CELCIUS
@property @property
def state(self): def state(self):
""" Returns the state of the sensor. """
temp = getattr(self.device, self.variable) temp = getattr(self.device, self.variable)
if temp is None: if temp is None:
return None return None