Skip to content

Commit

Permalink
Etrel: remove api.CurrentGetter (#14635)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Jun 30, 2024
1 parent 1feb492 commit 2029806
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions charger/etrel.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,17 +190,8 @@ func (wb *Etrel) MaxCurrentMillis(current float64) error {
return err
}

var _ api.CurrentGetter = (*Etrel)(nil)

// GetMaxCurrent implements the api.CurrentGetter interface
func (wb *Etrel) GetMaxCurrent() (float64, error) {
b, err := wb.conn.ReadHoldingRegisters(wb.base+etrelRegMaxCurrent, 2)
if err != nil {
return 0, err
}

return float64(math.Float32frombits(binary.BigEndian.Uint32(b))), nil
}
// removed due to https://github.com/evcc-io/evcc/issues/14507
// var _ api.CurrentGetter = (*Etrel)(nil)

var _ api.Meter = (*Etrel)(nil)

Expand Down

0 comments on commit 2029806

Please sign in to comment.