Skip to content

Commit 555cc41

Browse files
author
SublimePotato
committed
fix: target_temp was not shown due to this.value.low / high need to be null
1 parent 407f148 commit 555cc41

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/better-thermostat-ui-card.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/better-thermostat-ui.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,8 +656,8 @@ export class BetterThermostatUi extends LitElement implements LovelaceCard {
656656

657657
this.value = {
658658
value: attributes?.temperature || 0,
659-
low: attributes?.target_temp_low || undefined,
660-
high: attributes?.target_temp_high || undefined,
659+
low: attributes?.target_temp_low as any || null,
660+
high: attributes?.target_temp_high as any || null,
661661
};
662662

663663
if (attributes.target_temp_step) {

0 commit comments

Comments
 (0)