87c138c5593ae7c9c7e4b1a20858c96d5a9f6b82,homeassistant/components/homematic.py,,system_callback_handler,#Any#Any#Any#,114
Before Change
// they are setup in HA and an event is fired
if found_devices:
component = get_component(component_name)
config = {component.DOMAIN: found_devices}
// Ensure component is loaded
homeassistant.bootstrap.setup_component(
hass,
component.DOMAIN,
config)
// Fire discovery event
hass.bus.fire(
EVENT_PLATFORM_DISCOVERED, {
ATTR_SERVICE: discovery_type,
ATTR_DISCOVERED: {
ATTR_DISCOVER_DEVICES:
found_devices,
ATTR_DISCOVER_CONFIG: ""
}
}
)
for dev in devices_not_created:
if dev in HOMEMATIC_DEVICES:
for hm_element in HOMEMATIC_DEVICES[dev]:
After Change
component = get_component(component_name)
// HA discovery event
discovery.load_platform(hass, component, DOMAIN, {
ATTR_DISCOVER_DEVICES: found_devices
}, config)
for dev in devices_not_created:
if dev in HOMEMATIC_DEVICES:
for hm_element in HOMEMATIC_DEVICES[dev]:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: home-assistant/home-assistant
Commit Name: 87c138c5593ae7c9c7e4b1a20858c96d5a9f6b82
Time: 2016-06-25
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/homematic.py
Class Name:
Method Name: system_callback_handler
Project Name: home-assistant/home-assistant
Commit Name: e0e9d3c57b6e61525b026b1f504b85a6a3de5fd4
Time: 2016-06-25
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/homematic.py
Class Name:
Method Name: system_callback_handler
Project Name: home-assistant/home-assistant
Commit Name: 30f74bb3caf84883ca2c2e0bfc51131a1e731ffd
Time: 2016-06-11
Author: paulus@paulusschoutsen.nl
File Name: tests/helpers/test_entity_component.py
Class Name: TestHelpersEntityComponent
Method Name: test_setup_does_discovery
Project Name: home-assistant/home-assistant
Commit Name: 87c138c5593ae7c9c7e4b1a20858c96d5a9f6b82
Time: 2016-06-25
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/homematic.py
Class Name:
Method Name: system_callback_handler