Mqtt: fix smartCostLimit topic case (#8328)

This commit is contained in:
Daniel Paschke 2023-06-06 18:04:41 +02:00 • committed by GitHub
parent 31aa841a4a
commit 9c48ba36fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -246,7 +246,7 @@ func (m *MQTT) Run(site site.API, in <-chan util.Param) {
return err
})
m.Handler.ListenSetter(m.root+"/site/smartcostlimit/set", func(payload string) error {
m.Handler.ListenSetter(m.root+"/site/smartCostLimit/set", func(payload string) error {
val, err := parseFloat(payload)
if err == nil {
err = site.SetSmartCostLimit(val)