remove trailing 'require'

This commit is contained in:
atef 2023-03-01 13:23:42 +01:00
parent 6f48b97621
commit be5999e0f0
2 changed files with 14 additions and 14 deletions

View File

@ -10,23 +10,23 @@ using T = Battery48TLStatus;
[SuppressMessage("ReSharper", "InconsistentNaming")] [SuppressMessage("ReSharper", "InconsistentNaming")]
public record Battery48TLStatus : BatteryStatus public record Battery48TLStatus : BatteryStatus
{ {
public required Voltage CellsVoltage { get; init; } public Voltage CellsVoltage { get; init; }
public required Power MaxChargingPower { get; init; } public Power MaxChargingPower { get; init; }
public required Power MaxDischargingPower { get; init; } public Power MaxDischargingPower { get; init; }
public required State GreenLed { get; init; } public State GreenLed { get; init; }
public required State AmberLed { get; init; } public State AmberLed { get; init; }
public required State BlueLed { get; init; } public State BlueLed { get; init; }
public required State RedLed { get; init; } public State RedLed { get; init; }
public required State Warnings { get; init; } public State Warnings { get; init; }
public required State Alarms { get; init; } public State Alarms { get; init; }
public required State MainSwitchState { get; init; } // connected to bus | disconnected from bus public State MainSwitchState { get; init; } // connected to bus | disconnected from bus
public required State HeaterState { get; init; } // heating | not heating public State HeaterState { get; init; } // heating | not heating
public required State EocState { get; init; } // EOC reached | EOC not reached public State EocState { get; init; } // EOC reached | EOC not reached
public required State TemperatureState { get; init; } // cold | operating temperature | overheated public State TemperatureState { get; init; } // cold | operating temperature | overheated
public static T operator |(T left, T right) => OpParallel(left, right); public static T operator |(T left, T right) => OpParallel(left, right);

View File

@ -10,7 +10,7 @@ using T = BatteryStatus;
[OpParallel] [OpParallel]
public partial record BatteryStatus : DeviceStatus, IDcConnection public partial record BatteryStatus : DeviceStatus, IDcConnection
{ {
public DcBus Dc { get; init; } public DcBus Dc { get; init; }
public Percent Soc { get; init; } public Percent Soc { get; init; }
public Temperature Temperature { get; init; } public Temperature Temperature { get; init; }
} }