SMA: fix error messages (#1196)
This commit is contained in:
parent
ae764c19ec
commit
f9214a671e
5 changed files with 28 additions and 17 deletions
|
|
@ -81,6 +81,8 @@ func NewSMA(uri, password, iface string, serial uint32, scale float64) (api.Mete
|
|||
default:
|
||||
return nil, errors.New("missing uri or serial")
|
||||
}
|
||||
// start update loop manually to get values as fast as possible
|
||||
sm.device.StartUpdateLoop()
|
||||
|
||||
// decorate api.Battery in case of inverter
|
||||
var soc func() (float64, error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue