From e170484f1668eefe79eb8a4966f51958e7becdd4 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 13 Feb 2016 21:20:49 -0800 Subject: [PATCH] Change helpers.extract_domain_configs from generator to list bc concurrency --- homeassistant/helpers/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/helpers/__init__.py b/homeassistant/helpers/__init__.py index ec7996ff6df..b94530e525c 100644 --- a/homeassistant/helpers/__init__.py +++ b/homeassistant/helpers/__init__.py @@ -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)]