Skip to content

Commit

Permalink
Set temperature_band from options
Browse files Browse the repository at this point in the history
  • Loading branch information
daft-panda committed Oct 8, 2023
1 parent 5d9e842 commit e05a7d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ebus-thermostat/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ async fn main() {

let tp = TemperaturePreferences {
tap_water_set_point: options.tap_water_temp as f32,
temperature_band: options.temperature_band,
..Default::default()
};
thermostat.set_temp_preference(tp);
Expand Down Expand Up @@ -203,7 +204,7 @@ impl Thermostat {
mqtt_host: String,
mqtt_username: String,
mqtt_password: String,
) -> anyhow::Result<Self> {
) -> Result<Self> {
let api = Api::new(ha_address, ha_api_token);
// check if thermometer entity exists
let devices = api.get_devices().await?;
Expand Down

0 comments on commit e05a7d6

Please sign in to comment.