update
parent
fd7808e6f4
commit
d0c674b756
|
@ -91,7 +91,7 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
||||||
config.get('optimistic', DEFAULT_OPTIMISTIC))])
|
config.get('optimistic', DEFAULT_OPTIMISTIC))])
|
||||||
|
|
||||||
|
|
||||||
#pylint: disable-msg=too-many-arguments
|
# pylint: disable=too-many-arguments, too-many-instance-attributes
|
||||||
class MqttSwitch(SwitchDevice):
|
class MqttSwitch(SwitchDevice):
|
||||||
""" Represents a switch that can be togggled using MQTT """
|
""" Represents a switch that can be togggled using MQTT """
|
||||||
def __init__(self, hass, name, state_topic, command_topic,
|
def __init__(self, hass, name, state_topic, command_topic,
|
||||||
|
|
Loading…
Reference in New Issue