Skip to content

Commit

Permalink
fix: Icon position for temperature in climate setting rows (#608)
Browse files Browse the repository at this point in the history
* fix: Show temperature in climate setting rows

* Add celsius values to fake

* Remove conditional change to `isSetPoint` function
  • Loading branch information
xplato committed Mar 18, 2024
1 parent 7aa61fc commit cace2e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .storybook/seed-fake.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,15 +374,19 @@ export const seedFake = (db) => {
automatic_cooling_enabled: true,
automatic_heating_enabled: true,
cooling_set_point_fahrenheit: 75,
cooling_set_point_celsius: 23.8,
heating_set_point_fahrenheit: 65,
heating_set_point_celsius: 18.3,
},
default_climate_setting: {
hvac_mode_setting: 'heat_cool',
manual_override_allowed: false,
automatic_cooling_enabled: true,
automatic_heating_enabled: true,
cooling_set_point_fahrenheit: 75,
cooling_set_point_celsius: 23.8,
heating_set_point_fahrenheit: 65,
heating_set_point_celsius: 18.3,
},
available_hvac_mode_settings: ['off', 'cool', 'heat', 'heat_cool'],
can_enable_automatic_cooling: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export function ThermostatDeviceDetails({
<ClimateSettingStatus
climateSetting={device.properties.default_climate_setting}
temperatureUnit='fahrenheit'
iconPlacement='right'
/>
) : (
<p>{t.none}</p>
Expand Down Expand Up @@ -397,6 +398,7 @@ function ClimateSettingRow({
<ClimateSettingStatus
climateSetting={device.properties.current_climate_setting}
temperatureUnit='fahrenheit'
iconPlacement='right'
/>
}
>
Expand Down

0 comments on commit cace2e2

Please sign in to comment.