40c71b5d963d752402ccdc3de12faa58c974743e,homeassistant/components/switch/command_line.py,,setup_platform,#Any#Any#Any#Any#,18

Before Change


            CommandSwitch(
                hass,
                properties.get("name", dev_name),
                properties.get("oncmd", "true"),
                properties.get("offcmd", "true"),
                properties.get("statecmd", False),
                properties.get(CONF_VALUE_TEMPLATE, False)))

After Change


            )
        )

    if not switches:
        _LOGGER.error("No switches added")
        return False

    add_devices(switches)


// pylint: disable=too-many-instance-attributes
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: home-assistant/home-assistant
Commit Name: 40c71b5d963d752402ccdc3de12faa58c974743e
Time: 2016-09-02
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/switch/command_line.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 40c71b5d963d752402ccdc3de12faa58c974743e
Time: 2016-09-02
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/cover/command_line.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 1d017beb934bf584780a29c71784dcb658a5c3fa
Time: 2015-12-12
Author: fabian@affolter-engineering.ch
File Name: homeassistant/components/sensor/dweet.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: d3d7d458e16f5b017d6be381999c663af3af328e
Time: 2016-02-11
Author: dsmith@danplanet.com
File Name: homeassistant/components/thermostat/honeywell.py
Class Name:
Method Name: setup_platform