Store devices wrapped in Arc RwLock
This commit is contained in:
@@ -20,7 +20,7 @@ pub struct Device {
|
||||
// customData
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[derive(Debug, Deserialize, Clone, Copy)]
|
||||
#[serde(tag = "command", content = "params")]
|
||||
pub enum CommandType {
|
||||
#[serde(rename = "action.devices.commands.OnOff")]
|
||||
|
||||
Reference in New Issue
Block a user