mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 04:50:17 +00:00
Update docstring (config file) and attempt to honor PEP0257
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user