fix device page selection

This commit is contained in:
Michael Zanetti 2018-07-07 16:56:57 +02:00
parent 6b88b4bf4d
commit a030873522

View File

@ -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;
}