59524c7933c84680c5fb1b164814cd9b363d5727,homeassistant/components/mysensors.py,,setup,#Any#Any#,44
Before Change
elif version == "1.5":
import mysensors.const_15 as const
CONST = const
_LOGGER.info("CONST = %s, 1.5", const)
else:
import mysensors.const_14 as const
CONST = const
_LOGGER.info("CONST = %s, 1.4 default", const)
After Change
CONF_PERSISTENCE_FILE, hass.config.path("mysensors.pickle"))
if isinstance(port, str):
port = [port]
if isinstance(persistence_file, str):
persistence_file = [persistence_file]
// Setup all ports from config
global GATEWAYS
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
def mysensors_update(platform_type):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: home-assistant/home-assistant
Commit Name: 59524c7933c84680c5fb1b164814cd9b363d5727
Time: 2015-12-05
Author: marhje52@kth.se
File Name: homeassistant/components/mysensors.py
Class Name:
Method Name: setup
Project Name: NifTK/NiftyNet
Commit Name: 61a0663a45beb2e59f6a549c51d55940c80734e3
Time: 2018-03-05
Author: rmaplue@ucl.ac.uk
File Name: niftynet/io/image_as_nibabel.py
Class Name:
Method Name:
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 225d31587eeb9aca226158e346c8e9730777913c
Time: 2017-02-24
Author: nlavine@google.com
File Name: perfkitbenchmarker/publisher.py
Class Name:
Method Name: RepublishJSONSamples
Project Name: deepfakes/faceswap
Commit Name: 86ac59678486f4584b02dd561db826b903346e19
Time: 2021-03-18
Author: dmiszkiewicz@users.noreply.github.com
File Name: tools/sort/sort.py
Class Name: Sort
Method Name: sort_face_yaw