From 57202faed9a1a3016ce90ed398aa8ded7de6b29e Mon Sep 17 00:00:00 2001 From: Alexandra Duval Date: Sun, 15 Mar 2020 19:12:11 +0100 Subject: [PATCH 1/3] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 71e225a..9fa7b35 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +Forked from https://github.com/XoddX/heatzy + # heatzy A module for interacting with Heatzy devices From 6157f7f0043455104b3c01fb71f7240ff44e8e8d Mon Sep 17 00:00:00 2001 From: duvalale Date: Sun, 15 Mar 2020 14:05:07 -0400 Subject: [PATCH 2/3] added missing catch on getToken promise --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 4191a68..96fa716 100644 --- a/index.js +++ b/index.js @@ -273,7 +273,9 @@ class Heatzy { this.token = body.token; this.tokenExpires = body.expire_at; return body.token; - }) + }).catch((error) => { + return error; + }); } getDevices() { @@ -291,4 +293,4 @@ class Heatzy { } } -module.exports = Heatzy; \ No newline at end of file +module.exports = Heatzy; From 53ebc38a077095a50c3938af39cabb89d23edfc9 Mon Sep 17 00:00:00 2001 From: Alexandra Duval Date: Sun, 15 Mar 2020 19:20:45 +0100 Subject: [PATCH 3/3] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 9fa7b35..71e225a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -Forked from https://github.com/XoddX/heatzy - # heatzy A module for interacting with Heatzy devices