Fix final pep257 issues
This commit is contained in:
1 parent
14a9b9fe3f
commit
b9856a2af5
8 files changed
+8
-6
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user