Fixed struct name for temperature control
This commit is contained in:
@@ -5,7 +5,7 @@ use automation_macro::LuaDeviceConfig;
|
|||||||
use google_home::device::Name;
|
use google_home::device::Name;
|
||||||
use google_home::errors::ErrorCode;
|
use google_home::errors::ErrorCode;
|
||||||
use google_home::traits::{
|
use google_home::traits::{
|
||||||
AvailableSpeeds, FanSpeed, HumiditySetting, OnOff, Speed, SpeedValue, TemperatureSetting,
|
AvailableSpeeds, FanSpeed, HumiditySetting, OnOff, Speed, SpeedValue, TemperatureControl,
|
||||||
TemperatureUnit,
|
TemperatureUnit,
|
||||||
};
|
};
|
||||||
use google_home::types::Type;
|
use google_home::types::Type;
|
||||||
@@ -209,7 +209,7 @@ impl HumiditySetting for AirFilter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[async_trait]
|
#[async_trait]
|
||||||
impl TemperatureSetting for AirFilter {
|
impl TemperatureControl for AirFilter {
|
||||||
fn query_only_temperature_control(&self) -> Option<bool> {
|
fn query_only_temperature_control(&self) -> Option<bool> {
|
||||||
Some(true)
|
Some(true)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ traits! {
|
|||||||
|
|
||||||
async fn humidity_ambient_percent(&self) -> Result<isize, ErrorCode>,
|
async fn humidity_ambient_percent(&self) -> Result<isize, ErrorCode>,
|
||||||
},
|
},
|
||||||
"action.devices.traits.TemperatureControl" => trait TemperatureSetting {
|
"action.devices.traits.TemperatureControl" => trait TemperatureControl {
|
||||||
query_only_temperature_control: Option<bool>,
|
query_only_temperature_control: Option<bool>,
|
||||||
// TODO: Add rename
|
// TODO: Add rename
|
||||||
temperatureUnitForUX: TemperatureUnit,
|
temperatureUnitForUX: TemperatureUnit,
|
||||||
|
|||||||
Reference in New Issue
Block a user