mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
fix pylint errors in sensor/nest
This commit is contained in:
parent
4dbd84ead0
commit
4ca4941c82
@ -38,7 +38,9 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
for device in structure.devices:
|
for device in structure.devices:
|
||||||
for variable in config['monitored_conditions']:
|
for variable in config['monitored_conditions']:
|
||||||
if variable in SENSOR_TYPES:
|
if variable in SENSOR_TYPES:
|
||||||
add_devices([NestBasicSensor(structure, device, variable)])
|
add_devices([NestBasicSensor(structure,
|
||||||
|
device,
|
||||||
|
variable)])
|
||||||
elif variable in SENSOR_TEMP_TYPES:
|
elif variable in SENSOR_TEMP_TYPES:
|
||||||
add_devices([NestTempSensor(structure,
|
add_devices([NestTempSensor(structure,
|
||||||
device,
|
device,
|
||||||
@ -78,6 +80,8 @@ class NestSensor(Entity):
|
|||||||
|
|
||||||
|
|
||||||
class NestBasicSensor(NestSensor):
|
class NestBasicSensor(NestSensor):
|
||||||
|
""" Represents a basic Nest sensor with state. """
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def state(self):
|
def state(self):
|
||||||
""" Returns the state of the sensor. """
|
""" Returns the state of the sensor. """
|
||||||
|
Loading…
x
Reference in New Issue
Block a user