cleanup of sample.json and platform shim

removed non-existent old device types from platform shim.
This commit is contained in:
Snowdd1
2015-09-06 11:41:33 +02:00
parent 09516acaf3
commit 9d8afc4bcb
2 changed files with 119 additions and 104 deletions

View File

@@ -47,24 +47,6 @@ KNXPlatform.prototype = {
this.log("created "+acc.name+" universal accessory");
myAccessories.push(acc);
break;
case "knxlamp":
this.log("push new lamp with "+foundAccessories[int].name );
foundAccessories[int].knxd_ip = this.config.knxd_ip;
foundAccessories[int].knxd_port = this.config.knxd_port;
var accConstructor = require('./../accessories/knxlamp.js');
var acc = new accConstructor.accessory(this.log,foundAccessories[int]);
this.log("created "+acc.name+" accessory");
myAccessories.push(acc);
break;
case "knxthermostat":
this.log("push new thermostat with "+foundAccessories[int].name);
foundAccessories[int].knxd_ip = this.config.knxd_ip;
foundAccessories[int].knxd_port = this.config.knxd_port;
var accConstructor = require('./../accessories/knxthermostat.js');
var acc = new accConstructor.accessory(this.log,foundAccessories[int]);
this.log("created "+acc.name+" accessory");
myAccessories.push(acc);
break;
default:
// do something else
this.log("unkown accessory type found")