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,10 +5,6 @@ namespace PowerMonitor.Models;
|
||||
|
||||
public class PowerMonitorEntity : EntityCreateModel
|
||||
{
|
||||
public string Domain { get; }
|
||||
public string Identifier { get; }
|
||||
public string Name { get; }
|
||||
|
||||
public PowerMonitorEntity(string domain, string identifier, string name)
|
||||
{
|
||||
Domain = domain;
|
||||
@@ -22,4 +18,8 @@ public class PowerMonitorEntity : EntityCreateModel
|
||||
Name = Name
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
public string Domain { get; }
|
||||
public string Identifier { get; }
|
||||
public string Name { get; }
|
||||
}
|
||||
@@ -6,4 +6,4 @@ public sealed class PowerSensorInfo
|
||||
public required string FriendlyName { get; init; }
|
||||
public required string DeviceName { get; init; }
|
||||
public string UnitOfMeasurement { get; init; } = "W";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user