e425801fe0632517fd32282f2aa83716553c328f,homeassistant/components/sensor/homematic.py,,setup_platform,#Any#Any#Any#Any#,48
Before Change
if discovery_info is None:
return
homematic = get_component("homematic")
return homematic.setup_hmdevice_discovery_helper(
hass,
HMSensor,
discovery_info,
add_callback_devices
)
class HMSensor(HMDevice):
Represents various Homematic sensors in Home Assistant.
After Change
if discovery_info is None:
return
devices = []
for config in discovery_info[ATTR_DISCOVER_DEVICES]:
new_device = HMSensor(hass, config)
new_device.link_homematic()
devices.append(new_device)
add_devices(devices)
class HMSensor(HMDevice):
Represents various Homematic sensors in Home Assistant.
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 13
Instances
Project Name: home-assistant/home-assistant
Commit Name: e425801fe0632517fd32282f2aa83716553c328f
Time: 2017-02-20
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: e425801fe0632517fd32282f2aa83716553c328f
Time: 2017-02-20
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: e425801fe0632517fd32282f2aa83716553c328f
Time: 2017-02-20
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/climate/homematic.py
Class Name:
Method Name: setup_platform
Project Name: home-assistant/home-assistant
Commit Name: e425801fe0632517fd32282f2aa83716553c328f
Time: 2017-02-20
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: e425801fe0632517fd32282f2aa83716553c328f
Time: 2017-02-20
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/cover/homematic.py
Class Name:
Method Name: setup_platform
Project Name: home-assistant/home-assistant
Commit Name: e425801fe0632517fd32282f2aa83716553c328f
Time: 2017-02-20
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/binary_sensor/homematic.py
Class Name:
Method Name: setup_platform