Skip to content

Commit aa4aa50

Browse files
committed
feat: Support Eco mode
1 parent 27f8695 commit aa4aa50

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/lib/ui/thermostat/ClimateModeMenu.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,17 @@ function ModeIcon(props: { mode: HvacModeSetting }): JSX.Element {
9292
return <ThermostatHeatCoolIcon />
9393
case 'off':
9494
return <OffIcon />
95+
case 'eco':
96+
return <ThermostatHeatCoolIcon />
97+
default:
98+
return <OffIcon />
9599
}
96100
}
97101

98-
const t = {
102+
const t: Record<HvacModeSetting, string> = {
99103
heat: 'Heat',
100104
cool: 'Cool',
101105
heat_cool: 'Heat & Cool',
102106
off: 'Off',
107+
eco: 'Eco',
103108
}

0 commit comments

Comments
 (0)