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)