Kathrein: remove unreliable session energy (#25427)

This commit is contained in:
mfuchs1984 2025-11-21 10:28:57 +01:00 • committed by GitHub
parent 8a6d409a82
commit 81d9f72127
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -321,17 +321,8 @@ func (wb *Kathrein) ChargeDuration() (time.Duration, error) {
return time.Duration(binary.BigEndian.Uint32(b)) * time.Second, nil
}
var _ api.ChargeRater = (*Kathrein)(nil)
// ChargedEnergy implements the api.ChargeRater interface
func (wb *Kathrein) ChargedEnergy() (float64, error) {
b, err := wb.conn.ReadHoldingRegisters(kathreinRegChargingEnergy, 2)
if err != nil {
return 0, err
}
return float64(binary.BigEndian.Uint32(b)) / 1e3, err
}
// removed since broken, see https://github.com/evcc-io/evcc/pull/25427
// var _ api.ChargeRater = (*Kathrein)(nil)
var _ api.MeterEnergy = (*Kathrein)(nil)