add EmuMeter TODO
This commit is contained in:
parent
73f4b22930
commit
5e8ec1aebf
|
@ -4,6 +4,8 @@ using InnovEnergy.Lib.Victron.VeDBus;
|
|||
|
||||
namespace InnovEnergy.App.EmuMeterDriver;
|
||||
|
||||
|
||||
// TODO: Does not compile
|
||||
public record Signal(Func<EmuMeterStatus, Object> Source, ObjectPath Path, String Format = "")
|
||||
{
|
||||
public VeProperty ToVeProperty(EmuMeterStatus status)
|
||||
|
@ -11,5 +13,4 @@ public record Signal(Func<EmuMeterStatus, Object> Source, ObjectPath Path, Strin
|
|||
var value = Source(status);
|
||||
return new VeProperty(Path, value, String.Format($"{{0:{Format}}}", value));
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue