Cleanup and test for optional interfaces (#799)

This commit is contained in:
andig 2021-03-22 12:51:10 +01:00 • committed by GitHub
parent 154a664909
commit 1d79f75980
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 212 additions and 80 deletions

View file

@ -18,7 +18,7 @@ func (m *ChargeMeter) SetPower(power float64) {
m.power = power
}
// CurrentPower implements the Meter.CurrentPower interface
// CurrentPower implements the api.Meter interface
func (m *ChargeMeter) CurrentPower() (float64, error) {
m.Lock()
defer m.Unlock()