forked from jens-maus/RaspberryMatic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0187-WebUI-Fix-GroupEditingIfDevicesInInbox.patch
33 lines (28 loc) · 1.33 KB
/
0187-WebUI-Fix-GroupEditingIfDevicesInInbox.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- occu/HMServer/opt/HMServer/pages/GroupEditPage.ftl.orig
+++ occu/HMServer/opt/HMServer/pages/GroupEditPage.ftl
@@ -305,7 +305,8 @@
{
ShowWaitAnim();
- DeviceListPage.showConfiguration(false, 'DEVICE', selfGroup.device.id);
+ var virtualDevice = new GroupDevice(self.virtualDeviceSerialNumber(),self.virtualDeviceSerialNumber(), "VirtualDevice");
+ DeviceListPage.showConfiguration(false, 'DEVICE', virtualDevice.device.id);
HideWaitAnim();
/*
@@ -544,7 +545,9 @@
});
ko.utils.arrayForEach(viewModel.assignableDevices(), function(item) {
- homematic("Interface.setMetadata", {"objectId":item.device.id, "dataId": "inHeatingGroup", "value" : "false"});
+ if(item.device != undefined) {
+ homematic("Interface.setMetadata", {"objectId":item.device.id, "dataId": "inHeatingGroup", "value" : "false"});
+ }
});
pb = JSON.stringify(data);
--- occu/WebUI/www/webui/js/common/viewmodels.js.orig
+++ occu/WebUI/www/webui/js/common/viewmodels.js
@@ -64,6 +64,7 @@
if (typeof self.device != "undefined") {
return DEV_getImagePath(self.device.deviceType.id, 50);
}
+ else return DEV_getImagePath(this.type, 50);
}
}, this);