File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -969,9 +969,6 @@ Device.create = function (item) {
969
969
case "venetian blinds" :
970
970
dev = new Blinds ( item ) ;
971
971
break ;
972
- case "water" :
973
- dev = new WaterSensor ( item ) ;
974
- break ;
975
972
case "wind" :
976
973
dev = new Wind ( item ) ;
977
974
break ;
@@ -1684,18 +1681,6 @@ function Visibility(item) {
1684
1681
}
1685
1682
Visibility . inheritsFrom ( WeatherSensor ) ;
1686
1683
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
-
1699
1684
function Wind ( item ) {
1700
1685
if ( arguments . length != 0 ) {
1701
1686
this . parent . constructor ( item ) ;
You can’t perform that action at this time.
0 commit comments