This commit is contained in:
parent
522fe27f11
commit
76a5a39ca9
|
@ -10,6 +10,6 @@ impl_cast = { path = "../impl_cast" }
|
|||
serde = { version = "1.0.149", features = ["derive"] }
|
||||
serde_json = "1.0.89"
|
||||
thiserror = "1.0.37"
|
||||
tokio = "1"
|
||||
tokio = { version = "1", features = ["sync"] }
|
||||
async-trait = "0.1.61"
|
||||
futures = "0.3.25"
|
||||
|
|
|
@ -80,7 +80,6 @@ pub trait GoogleHomeDevice: AsGoogleHomeDevice + Sync + Send + 'static {
|
|||
// OnOff
|
||||
if let Some(on_off) = As::<dyn OnOff>::cast(self) {
|
||||
traits.push(Trait::OnOff);
|
||||
let on_off = on_off;
|
||||
device.attributes.command_only_on_off = on_off.is_command_only();
|
||||
device.attributes.query_only_on_off = on_off.is_query_only();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user