fix config bug

This commit is contained in:
Andrey
2021-02-11 16:03:10 +03:00
parent 6758fd8d8e
commit 5a6903c67e

View File

@@ -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)