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
@@ -8,11 +8,11 @@
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\HomeAssistant.Models\HomeAssistant.Models.csproj" />
<ProjectReference Include="..\HomeAssistant.Models\HomeAssistant.Models.csproj"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="NetDaemon.Extensions.Mqtt" Version="26.43.1" />
<PackageReference Include="NetDaemon.Extensions.Mqtt" Version="26.43.1"/>
</ItemGroup>
</Project>
+8 -8
View File
@@ -5,17 +5,17 @@ public static class LightMonitorConsts
public const string DefaultLightEntityId = "light.sonoff_1002214d40";
public const string DefaultSunEntityId = "sun.sun";
public static readonly string[] DefaultPersonEntityIds =
[
"person.marius",
"person.erika",
"person.home_phone"
];
public const string SunBelowHorizon = "below_horizon";
public const string SunAboveHorizon = "above_horizon";
public const string PersonHomeState = "home";
public const string LightOnState = "on";
public const string UnavailableState = "unavailable";
public const string UnknownState = "unknown";
}
public static readonly string[] DefaultPersonEntityIds =
[
"person.marius",
"person.erika",
"person.home_phone"
];
}
+1 -1
View File
@@ -10,4 +10,4 @@ public sealed class LightMonitorOptions
public string LightEntityId { get; init; } = DefaultLightEntityId;
public string SunEntityId { get; init; } = DefaultSunEntityId;
public string[] PersonEntityIds { get; init; } = DefaultPersonEntityIds;
}
}