Skip to content

Commit cace2e2

Browse files
authored
fix: Icon position for temperature in climate setting rows (#608)
* fix: Show temperature in climate setting rows * Add celsius values to fake * Remove conditional change to `isSetPoint` function
1 parent 7aa61fc commit cace2e2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.storybook/seed-fake.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,15 +374,19 @@ export const seedFake = (db) => {
374374
automatic_cooling_enabled: true,
375375
automatic_heating_enabled: true,
376376
cooling_set_point_fahrenheit: 75,
377+
cooling_set_point_celsius: 23.8,
377378
heating_set_point_fahrenheit: 65,
379+
heating_set_point_celsius: 18.3,
378380
},
379381
default_climate_setting: {
380382
hvac_mode_setting: 'heat_cool',
381383
manual_override_allowed: false,
382384
automatic_cooling_enabled: true,
383385
automatic_heating_enabled: true,
384386
cooling_set_point_fahrenheit: 75,
387+
cooling_set_point_celsius: 23.8,
385388
heating_set_point_fahrenheit: 65,
389+
heating_set_point_celsius: 18.3,
386390
},
387391
available_hvac_mode_settings: ['off', 'cool', 'heat', 'heat_cool'],
388392
can_enable_automatic_cooling: true,

src/lib/seam/components/DeviceDetails/ThermostatDeviceDetails.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ export function ThermostatDeviceDetails({
133133
<ClimateSettingStatus
134134
climateSetting={device.properties.default_climate_setting}
135135
temperatureUnit='fahrenheit'
136+
iconPlacement='right'
136137
/>
137138
) : (
138139
<p>{t.none}</p>
@@ -397,6 +398,7 @@ function ClimateSettingRow({
397398
<ClimateSettingStatus
398399
climateSetting={device.properties.current_climate_setting}
399400
temperatureUnit='fahrenheit'
401+
iconPlacement='right'
400402
/>
401403
}
402404
>

0 commit comments

Comments
 (0)