diff --git a/google-home/Cargo.toml b/google-home/Cargo.toml index c47b3fe..e36e6b4 100644 --- a/google-home/Cargo.toml +++ b/google-home/Cargo.toml @@ -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" diff --git a/google-home/src/device.rs b/google-home/src/device.rs index 6829fa3..95655a9 100644 --- a/google-home/src/device.rs +++ b/google-home/src/device.rs @@ -80,7 +80,6 @@ pub trait GoogleHomeDevice: AsGoogleHomeDevice + Sync + Send + 'static { // OnOff if let Some(on_off) = As::::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(); }