diff --git a/csharp/Lib/Devices/Battery48TL/Battery48TLStatusRecord.cs b/csharp/Lib/Devices/Battery48TL/Battery48TLStatusRecord.cs index 79bc1c7df..b9feb07d0 100644 --- a/csharp/Lib/Devices/Battery48TL/Battery48TLStatusRecord.cs +++ b/csharp/Lib/Devices/Battery48TL/Battery48TLStatusRecord.cs @@ -10,23 +10,23 @@ using T = Battery48TLStatus; [SuppressMessage("ReSharper", "InconsistentNaming")] public record Battery48TLStatus : BatteryStatus { - public required Voltage CellsVoltage { get; init; } + public Voltage CellsVoltage { get; init; } - public required Power MaxChargingPower { get; init; } - public required Power MaxDischargingPower { get; init; } + public Power MaxChargingPower { get; init; } + public Power MaxDischargingPower { get; init; } - public required State GreenLed { get; init; } - public required State AmberLed { get; init; } - public required State BlueLed { get; init; } - public required State RedLed { get; init; } + public State GreenLed { get; init; } + public State AmberLed { get; init; } + public State BlueLed { get; init; } + public State RedLed { get; init; } - public required State Warnings { get; init; } - public required State Alarms { get; init; } + public State Warnings { get; init; } + public State Alarms { get; init; } - public required State MainSwitchState { get; init; } // connected to bus | disconnected from bus - public required State HeaterState { get; init; } // heating | not heating - public required State EocState { get; init; } // EOC reached | EOC not reached - public required State TemperatureState { get; init; } // cold | operating temperature | overheated + public State MainSwitchState { get; init; } // connected to bus | disconnected from bus + public State HeaterState { get; init; } // heating | not heating + public State EocState { get; init; } // EOC reached | EOC not reached + public State TemperatureState { get; init; } // cold | operating temperature | overheated public static T operator |(T left, T right) => OpParallel(left, right); diff --git a/csharp/Lib/StatusApi/BatteryStatus.cs b/csharp/Lib/StatusApi/BatteryStatus.cs index 6c656b1c9..f8a0124d5 100644 --- a/csharp/Lib/StatusApi/BatteryStatus.cs +++ b/csharp/Lib/StatusApi/BatteryStatus.cs @@ -10,7 +10,7 @@ using T = BatteryStatus; [OpParallel] public partial record BatteryStatus : DeviceStatus, IDcConnection { - public DcBus Dc { get; init; } + public DcBus Dc { get; init; } public Percent Soc { get; init; } public Temperature Temperature { get; init; } }