Skip to content

Commit

Permalink
Save changes supposed to be in 4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Otto Paulsen authored and Otto Paulsen committed Feb 14, 2024
1 parent 04c9c6e commit 74b7e4a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/.vuepress/components/BestSaveVerificator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<tr v-for="(hour, i) in payload.hours" :key="hour.start">
<td>{{ DateTime.fromISO(hour.start).day }}</td>
<td>
{{ DateTime.fromISO(hour.start).toLocaleString(DateTime.TIME_SIMPLE) }}
{{ DateTime.fromISO(hour.start).toFormat("HH:mm") }}
</td>
<td :class="priceClasses(i)">{{ hour.price }}</td>
<td>{{ hour.onOff ? "On" : "Off" }}</td>
Expand Down
4 changes: 4 additions & 0 deletions docs/changelog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/handle-output.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 74b7e4a

Please sign in to comment.