baa9bdf6fc75769aa45ce46ae175b989264a020f,homeassistant/components/sensor/homematic.py,,setup_platform,#Any#Any#Any#Any#,42

Before Change



def setup_platform(hass, config, add_callback_devices, discovery_info=None):
    Setup the platform.
    if discovery_info:
        return homematic.setup_hmdevice_discovery_helper(HMSensor,
                                                         discovery_info,
                                                         add_callback_devices)
    // Manual
    return homematic.setup_hmdevice_entity_helper(HMSensor,
                                                  config,
                                                  add_callback_devices)


class HMSensor(homematic.HMDevice):
    Represents various Homematic sensors in Home Assistant.

After Change



def setup_platform(hass, config, add_callback_devices, discovery_info=None):
    Setup the platform.
    if discovery_info is None:
        return

    return homematic.setup_hmdevice_discovery_helper(HMSensor,
                                                     discovery_info,
                                                     add_callback_devices)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 7

Instances


Project Name: home-assistant/home-assistant
Commit Name: baa9bdf6fc75769aa45ce46ae175b989264a020f
Time: 2016-06-28
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/sensor/homematic.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: baa9bdf6fc75769aa45ce46ae175b989264a020f
Time: 2016-06-28
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/rollershutter/homematic.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: baa9bdf6fc75769aa45ce46ae175b989264a020f
Time: 2016-06-28
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/thermostat/homematic.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: baa9bdf6fc75769aa45ce46ae175b989264a020f
Time: 2016-06-28
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/light/homematic.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: baa9bdf6fc75769aa45ce46ae175b989264a020f
Time: 2016-06-28
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/switch/homematic.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: baa9bdf6fc75769aa45ce46ae175b989264a020f
Time: 2016-06-28
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/binary_sensor/homematic.py
Class Name:
Method Name: setup_platform