Skip to content

Commit 1c9cdd4

Browse files
committed
Additional logging
1 parent 30ddf91 commit 1c9cdd4

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

index.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,15 @@ function httpRequest(url, method, callback) {
253253
function HomeSeerPlatform(log, config, api) {
254254
this.log = log;
255255
this.config = config;
256+
257+
if(config && this.config["poll"]==null)
258+
{
259+
this.log("Using default periodic polling rate");
260+
this.config["poll"] = 60;
261+
}
262+
263+
if(config)
264+
this.log("System default periodic polling rate set to " + this.config["poll"]);
256265
}
257266

258267
HomeSeerPlatform.prototype = {
@@ -333,12 +342,6 @@ function HomeSeerAccessory(log, platformConfig, accessoryConfig, status) {
333342

334343
var that = this;
335344

336-
if(platformConfig["poll"]==null)
337-
{
338-
this.log("Using default periodic polling rate");
339-
platformConfig["poll"] = 60;
340-
}
341-
342345
if (this.config.poll==null)
343346
{
344347
//Default to 1 minute polling cycle

0 commit comments

Comments
 (0)