Add the route to delete a relay

This commit is contained in:
2024-08-31 20:00:40 +02:00
parent 871d5109bf
commit f35aac04f6
5 changed files with 81 additions and 4 deletions

View File

@ -106,9 +106,9 @@ pub struct DeviceRelay {
/// Optional minimal runtime requirements for this relay
daily_runtime: Option<DailyMinRuntime>,
/// Specify relay that must be turned on before this relay can be started
depends_on: Vec<DeviceRelayID>,
pub depends_on: Vec<DeviceRelayID>,
/// Specify relays that must be turned off before this relay can be started
conflicts_with: Vec<DeviceRelayID>,
pub conflicts_with: Vec<DeviceRelayID>,
}
impl DeviceRelay {