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:
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
];
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user