From a0308735223460bbbcce9ccd900098a8a84c5f9f Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Sat, 7 Jul 2018 16:56:57 +0200 Subject: [PATCH] fix device page selection --- nymea-app/ui/Nymea.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nymea-app/ui/Nymea.qml b/nymea-app/ui/Nymea.qml index 82ff28ba..5c0b2c46 100644 --- a/nymea-app/ui/Nymea.qml +++ b/nymea-app/ui/Nymea.qml @@ -253,11 +253,12 @@ ApplicationWindow { page = "ShutterDevicePage.qml"; } else if (interfaceList.indexOf("garagegate") >= 0 ) { page = "GarageGateDevicePage.qml"; - } else if (interfaceList.indexOf("light")) { + } else if (interfaceList.indexOf("light") >= 0) { page = "ColorLightDevicePage.qml" } else { page = "GenericDevicePage.qml"; } + print("Selecting page", page, "for interface list:", interfaceList) return page; }