node-red-contrib-power-saver 4.2.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -86,7 +86,7 @@
86
86
  <tr v-for="(hour, i) in payload.hours" :key="hour.start">
87
87
  <td>{{ DateTime.fromISO(hour.start).day }}</td>
88
88
  <td>
89
- {{ DateTime.fromISO(hour.start).toLocaleString(DateTime.TIME_SIMPLE) }}
89
+ {{ DateTime.fromISO(hour.start).toFormat("HH:mm") }}
90
90
  </td>
91
91
  <td :class="priceClasses(i)">{{ hour.price }}</td>
92
92
  <td>{{ hour.onOff ? "On" : "Off" }}</td>
@@ -7,6 +7,10 @@ sidebarDepth: 1
7
7
 
8
8
  List the most significant changes.
9
9
 
10
+ ## 4.2.1
11
+
12
+ - Bugfix version 4.2.0. Change was not effective.
13
+
10
14
  ## 4.2.0
11
15
 
12
16
  - Format time on node status with HH:MM format. No AM/PM any more.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-power-saver",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "A module for Node-RED that you can use to turn on and off a switch based on power prices",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -85,7 +85,7 @@ function runSchedule(node, schedule, time, currentSent = false) {
85
85
  }, wait);
86
86
  } else {
87
87
  const message = "No schedule";
88
- node.warn(message);
88
+ // node.warn(message);
89
89
  node.status({ fill: "yellow", shape: "dot", text: message });
90
90
  if (!currentSent) {
91
91
  sendSwitch(node, node.outputIfNoSchedule);
@@ -93,7 +93,6 @@ describe("send command as input to schedule merger", () => {
93
93
  expect(equalHours(someOn, msg.payload.hours, ["price", "onOff", "start"])).to.equal(true);
94
94
  n1.warn.should.not.be.called;
95
95
  n1.receive({ payload: { commands: { reset: true } } });
96
- n1.warn.should.be.calledWithExactly("No schedule");
97
96
  done();
98
97
  });
99
98
  n1.receive({ payload: makePayload("s1", someOn) });