fae620f3b39e9eb3c9847953d57dd9b4dce5eab0,homeassistant/components/sensor/tcp.py,,setup_platform,#Any#Any#Any#Any#,30

Before Change



def setup_platform(hass, config, add_entities, discovery_info=None):
    Setup the TCP Sensor.
    if not Sensor.validate_config(config):
        return False
    add_entities((Sensor(hass, config),))


class Sensor(Entity):
    Implementation of a TCP socket based sensor.

After Change



def setup_platform(hass, config, add_devices, discovery_info=None):
    Set up the TCP Sensor.
    add_devices([TcpSensor(hass, config)])


class TcpSensor(Entity):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: home-assistant/home-assistant
Commit Name: fae620f3b39e9eb3c9847953d57dd9b4dce5eab0
Time: 2016-10-21
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/sensor/tcp.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: fae620f3b39e9eb3c9847953d57dd9b4dce5eab0
Time: 2016-10-21
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/binary_sensor/tcp.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: db23320659a711637b5164fbe6ae6db15cc48e48
Time: 2016-07-06
Author: dale3h@gmail.com
File Name: homeassistant/components/sensor/apcupsd.py
Class Name:
Method Name: setup_platform