Update docstring (config file) and attempt to honor PEP0257
This commit is contained in:
parent
f18928d85b
commit
78a555faf5
11 changed files with 38 additions and 31 deletions
|
@ -6,6 +6,9 @@ supported.
|
|||
|
||||
Configuration:
|
||||
|
||||
To use the arduino switch you will need to add something like the following
|
||||
to your configuration.yaml file.
|
||||
|
||||
switch:
|
||||
platform: arduino
|
||||
pins:
|
||||
|
@ -62,7 +65,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||
|
||||
|
||||
class ArduinoSwitch(SwitchDevice):
|
||||
""" Represents an Arduino Switch. """
|
||||
""" Represents an Arduino switch. """
|
||||
def __init__(self, name, pin, pin_type):
|
||||
self._pin = pin
|
||||
self._name = name or DEVICE_DEFAULT_NAME
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue