Add support for legacy relays API
This commit is contained in:
@ -132,12 +132,14 @@ impl ConsumptionHistoryFile {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::app_config::ConsumptionHistoryType;
|
||||
use crate::energy::consumption::EnergyConsumption;
|
||||
use crate::energy::consumption_history_file::{ConsumptionHistoryFile, TIME_INTERVAL};
|
||||
|
||||
#[test]
|
||||
fn test_consumption_history() {
|
||||
let mut history = ConsumptionHistoryFile::new_memory(0);
|
||||
let mut history =
|
||||
ConsumptionHistoryFile::new_memory(0, ConsumptionHistoryType::GridConsumption);
|
||||
|
||||
for i in 0..50 {
|
||||
assert_eq!(
|
||||
|
Reference in New Issue
Block a user