f6d584af096d8f7bc03b600b2ec35ae2681655bc,homeassistant/bootstrap.py,,_setup_component,#Any#Any#Any#,76
Before Change
platforms = []
for _, platform in config_per_platform(config, domain):
try:
platforms.append(component.PLATFORM_SCHEMA(platform))
except vol.MultipleInvalid as ex:
_LOGGER.error("Invalid platform config for [%s]: %s. %s",
domain, ex, platform)
return False
After Change
return False
// Validate platform specific schema
if hasattr(platform, "PLATFORM_SCHEMA"):
try:
p_validated = platform.PLATFORM_SCHEMA(p_validated)
except vol.MultipleInvalid as ex:
_LOGGER.error(
"Invalid platform config for [%s.%s]: %s. %s",
domain, p_name, ex, p_config)
return False
platforms.append(p_validated)
// Create a copy of the configuration with all config for current
// component removed and add validated config back in.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: home-assistant/home-assistant
Commit Name: f6d584af096d8f7bc03b600b2ec35ae2681655bc
Time: 2016-04-02
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/bootstrap.py
Class Name:
Method Name: _setup_component
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 42fbf7857efc6e2153fc51303cc5a2f306ee9c01
Time: 2019-03-21
Author: dlott@google.com
File Name: perfkitbenchmarker/linux_benchmarks/stress_ng_benchmark.py
Class Name:
Method Name: _ParseStressngResult
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: aee98cea97ea0fb49f053c2212e9294dd121ca1b
Time: 2020-06-24
Author: tohaowu@google.com
File Name: perfkitbenchmarker/providers/gcp/gce_virtual_machine.py
Class Name: GceVirtualMachine
Method Name: UpdateInterruptibleVmStatus