Skip to content

Commit

Permalink
hand down user prefs
Browse files Browse the repository at this point in the history
  • Loading branch information
CFenner committed Jun 24, 2024
1 parent 6da8656 commit 4c0b5c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module.exports = {
};

this.sendSocketNotification(this.notifications.DATA_RESPONSE, {
payloadReturn: result.body.devices,
payloadReturn: result.body,
status: 'OK',
})
} catch (error) {
Expand Down
5 changes: 3 additions & 2 deletions netatmo.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,9 @@ Module.register('netatmo', {
break
case this.notifications.DATA_RESPONSE:
if (payload.status === 'OK') {
console.log('Devices %o', payload.payloadReturn)
const stationList = payload.payloadReturn
console.log('Devices %o', payload.payloadReturn.devices)
const stationList = payload.payloadReturn.devices
const userPreferences = payload.payloadReturn.user.administrative

Check failure on line 448 in netatmo.js

View workflow job for this annotation

GitHub Actions / ESLint

'userPreferences' is assigned a value but never used
this.updateModuleList(stationList)
this.updateDom(this.config.animationSpeed)
} else if (payload.status === 'INVALID_TOKEN') {
Expand Down

0 comments on commit 4c0b5c3

Please sign in to comment.