mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-11 17:14:28 +05:00
fix config bug
This commit is contained in:
@@ -32,7 +32,7 @@ class MegaView(HomeAssistantView):
|
|||||||
pt: cfg[mid][pt][CONF_RESPONSE_TEMPLATE]
|
pt: cfg[mid][pt][CONF_RESPONSE_TEMPLATE]
|
||||||
for pt in cfg[mid]
|
for pt in cfg[mid]
|
||||||
if CONF_RESPONSE_TEMPLATE in cfg[mid][pt]
|
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)
|
_LOGGER.debug('templates: %s', self.templates)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user