Switched to channels for communication between different parts of the code

This commit is contained in:
2023-01-09 23:50:50 +01:00
parent cf88768c15
commit 5b9d24e82f
18 changed files with 285 additions and 251 deletions

View File

@@ -10,7 +10,7 @@ pub enum Trait {
Scene,
}
pub trait OnOff {
pub trait OnOff: std::fmt::Debug {
fn is_command_only(&self) -> Option<bool> {
None
}
@@ -25,7 +25,7 @@ pub trait OnOff {
}
impl_cast::impl_cast!(GoogleHomeDevice, OnOff);
pub trait Scene {
pub trait Scene: std::fmt::Debug {
fn is_scene_reversible(&self) -> Option<bool> {
None
}