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:
2026-11-30 11:52:06 +02:00
parent cf8c9434c8
commit 24729ee267
165 changed files with 2513 additions and 2470 deletions
+9 -9
View File
@@ -5,23 +5,23 @@ public static class NordPoolConsts
public const string ConfigEntry = "01K9HYQE4Y0E7KC36JZV11MEXH";
/// <summary>
/// NordPool electricity market uses 15-minute trading intervals.
/// NordPool electricity market uses 15-minute trading intervals.
/// </summary>
public const int MinutesPerInterval = 15;
/// <summary>
/// Number of 15-minute intervals in one hour.
/// Number of 15-minute intervals in one hour.
/// </summary>
public const int IntervalsPerHour = 4;
/// <summary>
/// Maximum number of 15-minute intervals in a single day (96 = 24h * 4).
/// Maximum number of 15-minute intervals in a single day (96 = 24h * 4).
/// </summary>
public const int MaxDailyIntervals = 96;
/// <summary>
/// Maximum expected price entries when today and tomorrow are both available
/// (96 intervals per day x 2 days). Used for logging a warning if exceeded.
/// Maximum expected price entries when today and tomorrow are both available
/// (96 intervals per day x 2 days). Used for logging a warning if exceeded.
/// </summary>
public const int MaxExpectedPriceEntries = 192;
@@ -30,22 +30,22 @@ public static class NordPoolConsts
public const string DeviceManufacturer = "HomeAssistant App Daemon";
/// <summary>
/// Home Assistant entity id for the Nord Pool current price sensor published by this integration.
/// Home Assistant entity id for the Nord Pool current price sensor published by this integration.
/// </summary>
public const string CurrentPriceEntityId = "sensor.nordpool_current_price";
/// <summary>
/// Home Assistant entity id for the button that triggers a manual NordPool price fetch + entity update.
/// Home Assistant entity id for the button that triggers a manual NordPool price fetch + entity update.
/// </summary>
public const string FetchPricesButtonEntityId = "button.nordpool_fetch_prices";
/// <summary>
/// Maximum number of retry attempts when fetching prices from the NordPool API.
/// Maximum number of retry attempts when fetching prices from the NordPool API.
/// </summary>
public const int MaxFetchRetryAttempts = 3;
/// <summary>
/// Base delay in seconds between retry attempts (used with exponential backoff).
/// Base delay in seconds between retry attempts (used with exponential backoff).
/// </summary>
public const int RetryBaseDelaySeconds = 5;
}