Resolves #116 Add Iframe panel support

This commit is contained in:
estevez-dev
2019-03-13 17:23:23 +02:00
parent 92d0b5c055
commit 74572168ae
3 changed files with 36 additions and 19 deletions

View File

@ -262,7 +262,6 @@ class HomeAssistant {
await _sendInitialMessage("get_panels").then((data) {
if (data["success"]) {
data["result"].forEach((k,v) {
if (k != "lovelace" && !v["component_name"].startsWith("dev-") && v["component_name"]!="profile" && v["component_name"]!="states" && v["component_name"]!="kiosk") {
String title = v['title'] == null ? "${k[0].toUpperCase()}${k.substring(1)}" : "${v['title'][0].toUpperCase()}${v['title'].substring(1)}";
panels.add(Panel(
id: k,
@ -273,7 +272,6 @@ class HomeAssistant {
icon: v["icon"]
)
);
}
});
}
});