Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit 5429658

Browse files
committed
fix event name for get-thermostatsdata
fix event name for `get-thermostatsdata` after a mix and match between old deprecated 'get-thermstate' and the new not deprecated `get-thermostatsdata`
1 parent 2432dc0 commit 5429658

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

netatmo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ netatmo.prototype.getThermostatsData = function (options, callback) {
363363

364364
var devices = body.body.devices;
365365

366-
this.emit('get-stationsdata', err, devices);
366+
this.emit('get-thermostatsdata', err, devices);
367367

368368
if (callback) {
369369
return callback(err, devices);
@@ -700,7 +700,7 @@ netatmo.prototype.setThermpoint = function (options, callback) {
700700

701701
console.log(body);
702702

703-
this.emit('get-thermstate', err, body.status);
703+
this.emit('get-thermostatsdata', err, body.status);
704704

705705
if (callback) {
706706
return callback(err, body.status);

0 commit comments

Comments
 (0)