Apply code formatting cleanup across monitor projects
- Reindent appsettings.json and the MSBuild project files - Collapse single-statement guard blocks and tidy using and member order - Normalize XML doc indentation and file endings - Reorder BatteryMonitor test-data helpers and move the exclusion tests into their own region - Carry the same formatting through the boiler config, control, entity and test files
This commit is contained in:
@@ -12,4 +12,4 @@ public record BoilerMonitorConfig
|
||||
!string.IsNullOrWhiteSpace(BoilerSwitchEntityId) &&
|
||||
PollIntervalSeconds is > 0 &&
|
||||
HeatingPowerThresholdWatts is > 0;
|
||||
}
|
||||
}
|
||||
@@ -7,8 +7,8 @@ public sealed class BoilerMonitorOptions
|
||||
public bool Enabled { get; init; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// When true, removes existing BoilerMonitor MQTT entities before recreating them on app startup.
|
||||
/// Manual cleanup (e.g. HA button) is not affected.
|
||||
/// When true, removes existing BoilerMonitor MQTT entities before recreating them on app startup.
|
||||
/// Manual cleanup (e.g. HA button) is not affected.
|
||||
/// </summary>
|
||||
public bool CleanupEntitiesOnStartup { get; init; } = true;
|
||||
}
|
||||
}
|
||||
@@ -12,4 +12,4 @@ public record BoilerMonitorUpdateContext
|
||||
public required string? BoilerSwitchState { get; init; }
|
||||
public required double? BoilerPowerWatts { get; init; }
|
||||
public required DateTimeOffset? CooldownSince { get; init; }
|
||||
}
|
||||
}
|
||||
@@ -6,4 +6,4 @@ public record PersistedBoilerState
|
||||
public required int SessionCount { get; init; }
|
||||
public required string? SkipPriceCapState { get; init; }
|
||||
public required string? BudgetOverrideState { get; init; }
|
||||
}
|
||||
}
|
||||
@@ -4,4 +4,4 @@ public record RunTimeSnapshot
|
||||
{
|
||||
public required TimeSpan AccumulatedRunTime { get; init; }
|
||||
public required int SessionCount { get; init; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user