1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-04 04:12:23 +01:00
Otto Winter
2019-12-04 17:13:34 +01:00
committed by GitHub
parent 33c08812cc
commit bba6d6897d
11 changed files with 37 additions and 32 deletions

View File

@@ -59,7 +59,7 @@ def register_parented(var, value):
def extract_registry_entry_config(registry, full_config):
# type: (Registry, ConfigType) -> RegistryEntry
# type: ('Registry', 'ConfigType') -> 'RegistryEntry'
key, config = next((k, v) for k, v in full_config.items() if k in registry)
return registry[key], config