From 5a6903c67e04a1c8d7e0534f2324dafe4f6f70d5 Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 11 Feb 2021 16:03:10 +0300 Subject: [PATCH] fix config bug --- custom_components/mega/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/mega/http.py b/custom_components/mega/http.py index 6bf33e7..a1baaed 100644 --- a/custom_components/mega/http.py +++ b/custom_components/mega/http.py @@ -32,7 +32,7 @@ class MegaView(HomeAssistantView): pt: cfg[mid][pt][CONF_RESPONSE_TEMPLATE] for pt in cfg[mid] if CONF_RESPONSE_TEMPLATE in cfg[mid][pt] - } for mid in cfg + } for mid in cfg if isinstance(cfg[mid], dict) } _LOGGER.debug('templates: %s', self.templates)