Fixed build
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dreaded_X 2023-08-11 04:06:55 +02:00
parent 522fe27f11
commit 76a5a39ca9
Signed by: Dreaded_X
GPG Key ID: FA5F485356B0D2D4
2 changed files with 1 additions and 2 deletions

View File

@ -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"

View File

@ -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();
}