mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
Change helpers.extract_domain_configs from generator to list bc concurrency
This commit is contained in:
parent
9204c44eec
commit
e170484f16
@ -61,4 +61,4 @@ def config_per_platform(config, domain, logger):
|
||||
def extract_domain_configs(config, domain):
|
||||
""" Extract keys from config for given domain name. """
|
||||
pattern = re.compile(r'^{}(| .+)$'.format(domain))
|
||||
return (key for key in config.keys() if pattern.match(key))
|
||||
return [key for key in config.keys() if pattern.match(key)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user