Add support for legacy relays API
This commit is contained in:
@ -399,8 +399,8 @@ impl Handler<GetDevicesState> for EnergyActor {
|
||||
#[derive(serde::Serialize)]
|
||||
pub struct ResRelayState {
|
||||
pub id: DeviceRelayID,
|
||||
on: bool,
|
||||
r#for: usize,
|
||||
pub on: bool,
|
||||
pub r#for: usize,
|
||||
}
|
||||
|
||||
/// Get the state of all relays
|
||||
|
Reference in New Issue
Block a user