mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-18 05:10:57 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
77ce39e157 | ||
|
|
0af8a43dc9 | ||
|
|
620c8473b8 |
@@ -67,7 +67,7 @@ Logger.prototype.log = function(level, msg) {
|
|||||||
|
|
||||||
// prepend timestamp
|
// prepend timestamp
|
||||||
var date = new Date();
|
var date = new Date();
|
||||||
msg = chalk.black("[" + date.toLocaleString() + "]") + " " + msg;
|
msg = "[" + date.toLocaleString() + "]" + " " + msg;
|
||||||
|
|
||||||
func(msg);
|
func(msg);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -133,6 +133,7 @@ PlatformAccessory.prototype.updateReachability = function(reachable) {
|
|||||||
PlatformAccessory.prototype._prepareAssociatedHAPAccessory = function () {
|
PlatformAccessory.prototype._prepareAssociatedHAPAccessory = function () {
|
||||||
this._associatedHAPAccessory = new Accessory(this.displayName, this.UUID);
|
this._associatedHAPAccessory = new Accessory(this.displayName, this.UUID);
|
||||||
this._associatedHAPAccessory._sideloadServices(this.services);
|
this._associatedHAPAccessory._sideloadServices(this.services);
|
||||||
|
this._associatedHAPAccessory.category = this.category;
|
||||||
this._associatedHAPAccessory.reachable = this.reachable;
|
this._associatedHAPAccessory.reachable = this.reachable;
|
||||||
this._associatedHAPAccessory.on('identify', function(paired, callback) {
|
this._associatedHAPAccessory.on('identify', function(paired, callback) {
|
||||||
if (this.listeners('identify').length > 0) {
|
if (this.listeners('identify').length > 0) {
|
||||||
|
|||||||
@@ -466,7 +466,7 @@ Server.prototype._handleNewConfig = function(type, name, replace, config) {
|
|||||||
this._config.accessories.push(config);
|
this._config.accessories.push(config);
|
||||||
} else {
|
} else {
|
||||||
var targetName;
|
var targetName;
|
||||||
if (name.indexOf('.') == -1) {
|
if (name.indexOf('.') !== -1) {
|
||||||
targetName = name.split(".")[1];
|
targetName = name.split(".")[1];
|
||||||
}
|
}
|
||||||
var found = false;
|
var found = false;
|
||||||
@@ -498,7 +498,7 @@ Server.prototype._handleNewConfig = function(type, name, replace, config) {
|
|||||||
this._config.platforms.push(config);
|
this._config.platforms.push(config);
|
||||||
} else {
|
} else {
|
||||||
var targetName;
|
var targetName;
|
||||||
if (name.indexOf('.') == -1) {
|
if (name.indexOf('.') !== -1) {
|
||||||
targetName = name.split(".")[1];
|
targetName = name.split(".")[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "homebridge",
|
"name": "homebridge",
|
||||||
"description": "HomeKit support for the impatient",
|
"description": "HomeKit support for the impatient",
|
||||||
"version": "0.3.2",
|
"version": "0.3.3",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "DEBUG=* ./bin/homebridge -D -P example-plugins/ || true"
|
"dev": "DEBUG=* ./bin/homebridge -D -P example-plugins/ || true"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user