andig

Results 2115 comments of andig

Wow, der PR hat 27000 Zeilen generierten Code geändert. Langsam mache ich mir Sorgen! **UPDATE** binary geht von 103MB auf 117MB auf dem Mac. Das ist leider ein No-Go! @GrimmiMeloni...

Zwei (hässliche) Optimierungsideen fallen mir ein: - falls es `meter` nicht gibt ist die ganze Kombinatorik der weiteren Strommesswerte irrelavant, sie könnten also entfallen. - ich frage mich, ob es...

@GrimmiMeloni I've prototyped the idea above. This does work: ```go func TestMeterDecoration(t *testing.T) { ctrl := gomock.NewController(t) type chargerStruct = struct { api.Charger api.PhaseSwitcher } charger := chargerStruct{ api.NewMockCharger(ctrl), api.NewMockPhaseSwitcher(ctrl),...

Refs https://groups.google.com/g/golang-nuts/c/Oo9Nwm4AZRI

Testcase nochmal aktualisiert: ```go package main import ( "testing" "github.com/stretchr/testify/assert" ) type If1 interface { F1() } type If1Impl struct{} func (i *If1Impl) F1() { } type If2 interface {...

Im UI. Auf emails haben wir keinen Zugriff.

Meter hätte heute: ```go Power provider.Config Energy *provider.Config // optional Currents []provider.Config // optional Voltages []provider.Config // optional Powers []provider.Config // optional // battery capacity `mapstructure:",squash"` battery `mapstructure:",squash"` Soc *provider.Config...

Nein. Deine Schaltsteckdose ist kein `custom` device.

Na dann brauchts `Powers` auch fürs Vorzeichen, oder? Also alles „über dem Strich“?