Fix final pep257 issues

This commit is contained in:
Paulus Schoutsen 2016-03-09 23:34:38 -08:00
parent 14a9b9fe3f
commit b9856a2af5
8 changed files with 8 additions and 6 deletions

View File

@ -90,7 +90,7 @@ class MySensorsBinarySensor(BinarySensorDevice):
@property
def should_poll(self):
"""MySensor gateway pushes its state to HA."""
"""Mysensor gateway pushes its state to HA."""
return False
@property

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -56,6 +56,7 @@ class ModbusSwitch(ToggleEntity):
self.register_value = None
def __str__(self):
"""String representation of Modbus switch."""
return "%s: %s" % (self.name, self.state)
@property

View File

@ -88,7 +88,7 @@ class MySensorsSwitch(SwitchDevice):
@property
def should_poll(self):
"""MySensor gateway pushes its state to HA."""
"""Mysensor gateway pushes its state to HA."""
return False
@property

View File

@ -64,7 +64,7 @@ class RestSwitch(SwitchDevice):
@property
def is_on(self):
"""return true if device is on."""
"""Return true if device is on."""
return self._state
def turn_on(self, **kwargs):

View File

@ -179,7 +179,7 @@ class OrderedSet(collections.MutableSet):
curr = curr[2]
def __reversed__(self):
"""reverse the ordering."""
"""Reverse the ordering."""
end = self.end
curr = end[1]
while curr is not end: