Pantabox: Fix power scale (#7986)

This commit is contained in:
premultiply 2023-05-14 09:25:57 +02:00 • committed by GitHub
parent bd3b28b329
commit 1e2bb607b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,7 @@ func (wb *Pantabox) CurrentPower() (float64, error) {
}
err := wb.GetJSON(wb.uri+"/meter/power", &res)
return res.Power, err
return res.Power * 1e3, err
}
var _ api.Diagnosis = (*Pantabox)(nil)