30f74bb3caf84883ca2c2e0bfc51131a1e731ffd,homeassistant/components/mysensors.py,,setup,#Any#Any#,57
Before Change
GATEWAYS[device] = setup_gateway(
device, persistence_file, baud_rate, tcp_port)
for (component, discovery_service) in DISCOVERY_COMPONENTS:
// Ensure component is loaded
if not bootstrap.setup_component(hass, component, config):
return False
// Fire discovery event
hass.bus.fire(EVENT_PLATFORM_DISCOVERED, {
ATTR_SERVICE: discovery_service,
ATTR_DISCOVERED: {}})
return True
def pf_callback_factory(map_sv_types, devices, add_devices, entity_class):
After Change
GATEWAYS[device] = setup_gateway(
device, persistence_file, baud_rate, tcp_port)
for component in "sensor", "switch", "light", "binary_sensor":
discovery.load_platform(hass, component, DOMAIN, None, config)
return True
def pf_callback_factory(map_sv_types, devices, add_devices, entity_class):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: home-assistant/home-assistant
Commit Name: 30f74bb3caf84883ca2c2e0bfc51131a1e731ffd
Time: 2016-06-11
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/mysensors.py
Class Name:
Method Name: setup
Project Name: home-assistant/home-assistant
Commit Name: 30f74bb3caf84883ca2c2e0bfc51131a1e731ffd
Time: 2016-06-11
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/isy994.py
Class Name:
Method Name: setup
Project Name: home-assistant/home-assistant
Commit Name: 30f74bb3caf84883ca2c2e0bfc51131a1e731ffd
Time: 2016-06-11
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/vera.py
Class Name:
Method Name: setup
Project Name: home-assistant/home-assistant
Commit Name: 30f74bb3caf84883ca2c2e0bfc51131a1e731ffd
Time: 2016-06-11
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/mysensors.py
Class Name:
Method Name: setup