diff --git a/src/netatmo.js b/src/netatmo.js index c6416c7..376b1e8 100644 --- a/src/netatmo.js +++ b/src/netatmo.js @@ -60,7 +60,7 @@ class Netatmo { console.error('Failed to refresh token.'); this.config.token = ''; this.config.refresh_token = ''; - await updateConfig(); + await this.updateConfig(); return; }