mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +00:00
cleanup of sample.json and platform shim
removed non-existent old device types from platform shim.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user