Skip to content

Commit a9faa55

Browse files
committed
Fix increments on thermostat (ciotlosm#180)
1 parent 43c7a68 commit a9faa55

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

thermostat-card/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.0
1+
0.1.1

thermostat-card/changelog.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.1.1
2+
Fix #155 for increments being only .5
3+
14
## 0.1.0
25
Add ability to specify external sensor for ambient temperature
36

thermostat-card/thermostat-card.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ThermostatUI from './thermostat-card.lib.js?v=0.1.0'
1+
import ThermostatUI from './thermostat-card.lib.js?v=0.1.1'
22
class ThermostatCard extends HTMLElement {
33
constructor() {
44
super();

thermostat-card/thermostat-card.lib.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export default class ThermostatUI {
265265
if (value) {
266266
lblTarget[0].textContent = text;
267267
if (value % 1 != 0) {
268-
lblTarget[1].textContent = '5';
268+
lblTarget[1].textContent = Math.round(value % 1 * 10);
269269
} else {
270270
lblTarget[1].textContent = '';
271271
}

0 commit comments

Comments
 (0)