diff --git a/docs/.vuepress/components/BestSaveVerificator.vue b/docs/.vuepress/components/BestSaveVerificator.vue index 94e2636..ec5c60d 100644 --- a/docs/.vuepress/components/BestSaveVerificator.vue +++ b/docs/.vuepress/components/BestSaveVerificator.vue @@ -86,7 +86,7 @@ {{ DateTime.fromISO(hour.start).day }} - {{ DateTime.fromISO(hour.start).toLocaleString(DateTime.TIME_SIMPLE) }} + {{ DateTime.fromISO(hour.start).toFormat("HH:mm") }} {{ hour.price }} {{ hour.onOff ? "On" : "Off" }} diff --git a/docs/changelog/README.md b/docs/changelog/README.md index 2968be1..a4a6ea9 100644 --- a/docs/changelog/README.md +++ b/docs/changelog/README.md @@ -7,6 +7,10 @@ sidebarDepth: 1 List the most significant changes. +## 4.2.1 + + - Bugfix version 4.2.0. Change was not effective. + ## 4.2.0 - Format time on node status with HH:MM format. No AM/PM any more. diff --git a/package.json b/package.json index f3b121f..72caeca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-power-saver", - "version": "4.2.0", + "version": "4.2.1", "description": "A module for Node-RED that you can use to turn on and off a switch based on power prices", "main": "index.js", "scripts": { diff --git a/src/handle-output.js b/src/handle-output.js index 4289a4f..a97e457 100644 --- a/src/handle-output.js +++ b/src/handle-output.js @@ -85,7 +85,7 @@ function runSchedule(node, schedule, time, currentSent = false) { }, wait); } else { const message = "No schedule"; - node.warn(message); + // node.warn(message); node.status({ fill: "yellow", shape: "dot", text: message }); if (!currentSent) { sendSwitch(node, node.outputIfNoSchedule);