mirror of
https://github.com/mtan93/homebridge.git
synced 2026-05-11 22:06:52 +01:00
[Trivial] Text cleanup
This commit is contained in:
@@ -54,7 +54,7 @@ var locateBridge = function (callback) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (bridges.length > 1) {
|
if (bridges.length > 1) {
|
||||||
that.log("Warning: Multiple Philips Hue bridges detected. The first bridge will be used automatically. To use a different bridge set ip_address manually in configuration.");
|
that.log("Warning: Multiple Philips Hue bridges detected. The first bridge will be used automatically. To use a different bridge, set the `ip_address` manually in the configuration.");
|
||||||
}
|
}
|
||||||
|
|
||||||
that.log(
|
that.log(
|
||||||
@@ -72,7 +72,7 @@ var locateBridge = function (callback) {
|
|||||||
that.log("Attempting to discover Philips Hue bridge with meethue.com...");
|
that.log("Attempting to discover Philips Hue bridge with meethue.com...");
|
||||||
hue.nupnpSearch(function (locateError, bridges) {
|
hue.nupnpSearch(function (locateError, bridges) {
|
||||||
if (locateError) {
|
if (locateError) {
|
||||||
that.log("Philips Hue bridge discovery with meethue.com failed. Register your bridge with the meethue.com for more reiable discovery.");
|
that.log("Philips Hue bridge discovery with meethue.com failed. Register your bridge with the meethue.com for more reliable discovery.");
|
||||||
|
|
||||||
that.log("Attempting to discover Philips Hue bridge with network scan...");
|
that.log("Attempting to discover Philips Hue bridge with network scan...");
|
||||||
|
|
||||||
@@ -94,9 +94,9 @@ var locateBridge = function (callback) {
|
|||||||
|
|
||||||
PhilipsHuePlatform.prototype = {
|
PhilipsHuePlatform.prototype = {
|
||||||
accessories: function(callback) {
|
accessories: function(callback) {
|
||||||
|
this.log("Fetching Philips Hue lights...");
|
||||||
var that = this;
|
var that = this;
|
||||||
var getLights = function () {
|
var getLights = function () {
|
||||||
that.log("Fetching Philips Hue lights...");
|
|
||||||
var api = new HueApi(that.ip_address, that.username);
|
var api = new HueApi(that.ip_address, that.username);
|
||||||
// Connect to the API and loop through lights
|
// Connect to the API and loop through lights
|
||||||
api.lights(function(err, response) {
|
api.lights(function(err, response) {
|
||||||
|
|||||||
Reference in New Issue
Block a user