Skip to content

Commit

Permalink
Allow set float for http plugin (evcc-io#9381)
Browse files Browse the repository at this point in the history
  • Loading branch information
naltatis authored Aug 14, 2023
1 parent d9ef905 commit baa593c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions provider/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,15 @@ func (p *HTTP) IntSetter(param string) func(int64) error {
}
}

var _ SetFloatProvider = (*HTTP)(nil)

// FloatSetter sends int request
func (p *HTTP) FloatSetter(param string) func(float64) error {
return func(val float64) error {
return p.set(param, val)
}
}

var _ SetStringProvider = (*HTTP)(nil)

// StringSetter sends string request
Expand Down

0 comments on commit baa593c

Please sign in to comment.