Fix PEP257 issues
This commit is contained in:
1 parent
652f059d6a
commit
49ebc6d0b0
29 files changed
+294
-309
No files matched your search
@@ -34,12 +34,12 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
||||
|
||||
|
||||
class CommandSwitch(SwitchDevice):
|
||||
"""Represents a switch that can be toggled using shell commands."""
|
||||
"""Representation a switch that can be toggled using shell commands."""
|
||||
|
||||
# pylint: disable=too-many-arguments
|
||||
def __init__(self, hass, name, command_on, command_off,
|
||||
command_state, value_template):
|
||||
|
||||
"""Initialize the switch."""
|
||||
self._hass = hass
|
||||
self._name = name
|
||||
self._state = False
|
||||
@@ -84,12 +84,12 @@ class CommandSwitch(SwitchDevice):
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""The name of the switch."""
|
||||
"""Return the name of the switch."""
|
||||
return self._name
|
||||
|
||||
@property
|
||||
def is_on(self):
|
||||
"""True if device is on."""
|
||||
"""Return true if device is on."""
|
||||
return self._state
|
||||
|
||||
def _query_state(self):
|
||||
|
||||
Reference in new issue
Block a user