make Power of virtual devices "required", ditch Null device
This commit is contained in:
parent
8596fddb04
commit
3c47089bcf
|
@ -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; }
|
||||
}
|
|
@ -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; }
|
||||
}
|
Loading…
Reference in New Issue