Fix final pep257 issues
This commit is contained in:
1 parent
14a9b9fe3f
commit
b9856a2af5
8 files changed
+8
-6
No files matched your search
@@ -47,7 +47,7 @@ class CpuSpeedSensor(Entity):
|
||||
|
||||
@property
|
||||
def unit_of_measurement(self):
|
||||
"""return the unit the value is expressed in."""
|
||||
"""Return the unit the value is expressed in."""
|
||||
return self._unit_of_measurement
|
||||
|
||||
@property
|
||||
|
||||
@@ -101,7 +101,7 @@ class TorqueSensor(Entity):
|
||||
|
||||
@property
|
||||
def state(self):
|
||||
"""return the state of the sensor."""
|
||||
"""Return the state of the sensor."""
|
||||
return self._state
|
||||
|
||||
@property
|
||||
|
||||
@@ -96,6 +96,7 @@ class VeraSensor(Entity):
|
||||
self.update_ha_state(True)
|
||||
|
||||
def __str__(self):
|
||||
"""String representation of sensor."""
|
||||
return "%s %s %s" % (self.name, self.vera_device.device_id, self.state)
|
||||
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user