Skip to content

Commit 2a6b5c7

Browse files
committed
Reverted #3239 (causing issues in #3273) (we need a read-only switch type I assume)
1 parent 5a198fa commit 2a6b5c7

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

www/js/domoticzdevices.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -969,9 +969,6 @@ Device.create = function (item) {
969969
case "venetian blinds":
970970
dev = new Blinds(item);
971971
break;
972-
case "water":
973-
dev = new WaterSensor(item);
974-
break;
975972
case "wind":
976973
dev = new Wind(item);
977974
break;
@@ -1684,18 +1681,6 @@ function Visibility(item) {
16841681
}
16851682
Visibility.inheritsFrom(WeatherSensor);
16861683

1687-
function WaterSensor(item) {
1688-
if (arguments.length != 0) {
1689-
this.parent.constructor(item);
1690-
this.image = (this.status === 'Closed') ? "images/" + item.Image + "48_Off.png" : "images/" + item.Image + "48_On.png";
1691-
this.data = '';
1692-
this.LogLink = this.onClick = "window.location.href = '#/Devices/" + this.index + "/Log'";
1693-
this.status = this.status === 'Closed' ? 'No leakage' : 'Leakage';
1694-
this.showStatus = false;
1695-
}
1696-
}
1697-
WaterSensor.inheritsFrom(BinarySensor);
1698-
16991684
function Wind(item) {
17001685
if (arguments.length != 0) {
17011686
this.parent.constructor(item);

0 commit comments

Comments
 (0)