diff --git a/tapo/examples/tapo_ke100.rs b/tapo/examples/tapo_ke100.rs index 3f5f26b..edeba1b 100644 --- a/tapo/examples/tapo_ke100.rs +++ b/tapo/examples/tapo_ke100.rs @@ -35,7 +35,7 @@ async fn main() -> Result<(), Box> { let device_info = device.get_device_info().await?; info!("Device info: {device_info:?}"); - // Set temperature on target device and set temperature unit to Celsius. + // Set target temperature. // KE100 currently only supports Celsius as temperature unit. info!("Setting target temperature to {target_temperature} degrees Celsius..."); device diff --git a/tapo/src/api/child_devices/ke100_handler.rs b/tapo/src/api/child_devices/ke100_handler.rs index 61aa9b0..e6e3316 100644 --- a/tapo/src/api/child_devices/ke100_handler.rs +++ b/tapo/src/api/child_devices/ke100_handler.rs @@ -51,7 +51,6 @@ impl<'h> KE100Handler<'h> { target_temperature: u8, temperature_unit: TemperatureUnitKE100, ) -> Result<(), Error> { - //let control_range = self.get_control_range().await?; let device_info = self.get_device_info().await?; if target_temperature < device_info.min_control_temperature diff --git a/tapo/src/api/child_devices/t31x_handler.rs b/tapo/src/api/child_devices/t31x_handler.rs index 3f3277c..931d251 100644 --- a/tapo/src/api/child_devices/t31x_handler.rs +++ b/tapo/src/api/child_devices/t31x_handler.rs @@ -42,8 +42,8 @@ impl<'h> T31XHandler<'h> { .hub_handler .control_child::(self.device_id.clone(), request) .await? - .ok_or_else(|| Error::Tapo(TapoResponseError::EmptyResult)); + .ok_or_else(|| Error::Tapo(TapoResponseError::EmptyResult))?; - Ok(result?.try_into()?) + Ok(result.try_into()?) } } diff --git a/tapo/src/responses/child_device_list_result/ke100_result.rs b/tapo/src/responses/child_device_list_result/ke100_result.rs index f89a70e..94258e2 100644 --- a/tapo/src/responses/child_device_list_result/ke100_result.rs +++ b/tapo/src/responses/child_device_list_result/ke100_result.rs @@ -12,7 +12,7 @@ pub enum TemperatureUnitKE100 { Celsius, } -/// KE100 TRV. +/// KE100 thermostatic radiator valve (TRV). /// /// Specific properties: `temperature_unit`, `current_temperature`, `target_temperature`, /// `min_control_temperature, `max_control_temperature`, `temperature_offset`,