make Power of virtual devices "required", ditch Null device

This commit is contained in:
ig 2023-08-30 15:12:41 +02:00
parent 8596fddb04
commit 3c47089bcf
2 changed files with 2 additions and 4 deletions

View File

@ -4,7 +4,5 @@ namespace InnovEnergy.App.SaliMax.VirtualDevices;
public class AcPowerDevice
{
public AcPower Power { get; init; } = AcPower.Null;
public static AcPowerDevice Null => new AcPowerDevice();
public required AcPower Power { get; init; }
}

View File

@ -4,5 +4,5 @@ namespace InnovEnergy.App.SaliMax.VirtualDevices;
public class DcPowerDevice
{
public DcPower Power { get; init; } = DcPower.Null;
public required DcPower Power { get; init; }
}