9f54bcc21b1744f2850a35e54903f3581d14badb,homeassistant/components/mysensors.py,,setup,#Any#Any#,70
Before Change
GATEWAYS = {}
for index, port_item in enumerate(port):
persistence = config[DOMAIN].get(CONF_PERSISTENCE, True)
try:
persistence_f_item = persistence_file[index]
except IndexError:
_LOGGER.exception(
"No persistence_file is set for port %s,"
" disabling persistence", port_item)
persistence = False
persistence_f_item = None
GATEWAYS[port_item] = setup_gateway(
port_item, persistence, persistence_f_item)
return True
After Change
// Setup all ports from config
global GATEWAYS
GATEWAYS = {}
conf_gateways = config[DOMAIN][CONF_GATEWAYS]
if isinstance(conf_gateways, dict):
conf_gateways = [conf_gateways]
persistence = config[DOMAIN].get(CONF_PERSISTENCE, True)
for index, gway in enumerate(conf_gateways):
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 5
Instances Project Name: home-assistant/home-assistant
Commit Name: 9f54bcc21b1744f2850a35e54903f3581d14badb
Time: 2015-12-23
Author: marhje52@kth.se
File Name: homeassistant/components/mysensors.py
Class Name:
Method Name: setup
Project Name: pantsbuild/pants
Commit Name: 937907d721b8e4e9628b6d13bb59423e4406a5f1
Time: 2015-04-20
Author: itay@twitter.com
File Name: src/python/pants/backend/python/tasks/pytest_run.py
Class Name: PytestRun
Method Name: _do_run_tests
Project Name: Microsoft/nni
Commit Name: f36b62a91f612342492c4c7c1cfff52b24966537
Time: 2020-04-17
Author: shinyang@microsoft.com
File Name: examples/trials/sklearn/regression/main.py
Class Name:
Method Name: get_model
Project Name: home-assistant/home-assistant
Commit Name: ecc249aa27a8177ba2a9050465fd35319f7e1b24
Time: 2017-08-18
Author: mezz@johnmihalic.com
File Name: homeassistant/components/sensor/usps.py
Class Name:
Method Name: setup_platform
Project Name: home-assistant/home-assistant
Commit Name: 3b3f5fe6fe2092a5071491fafce11b3851d07ce8
Time: 2015-11-08
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/notify/slack.py
Class Name:
Method Name: get_service