Skip to content

Commit

Permalink
fix replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Apr 24, 2023
1 parent 578d43a commit 1e6b479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ class Viessmannapi extends utils.Adapter {
statusArray.forEach(async (element) => {
let url = element.url.replace("$id", device.id);
url = url.replace("$installation", installation.id);
url = url.replace("$gateway", device.gatewaySerial);
url = url.replace("$gatewaySerial", device.gatewaySerial);
if (
!ignoreFilter &&
(device.roles.includes("type:gateway") || device.roles.includes("type:virtual"))
Expand Down Expand Up @@ -347,7 +347,7 @@ class Viessmannapi extends utils.Adapter {
if (error.response && error.response.status === 504) {
this.log.info("Viessmann API is not available please try again later");
}
this.log.error(element.url);
this.log.error(url);
this.log.error(error);
error.response && this.log.error(JSON.stringify(error.response.data));
});
Expand Down

0 comments on commit 1e6b479

Please sign in to comment.