mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-06 05:15:15 -06:00
Number.SetValue() should accept a float instead of int
This commit is contained in:
@@ -16,7 +16,7 @@ type Number struct {
|
||||
|
||||
/* Public API */
|
||||
|
||||
func (ib Number) SetValue(entityId string, value int) {
|
||||
func (ib Number) SetValue(entityId string, value float32) {
|
||||
req := NewBaseServiceRequest(entityId)
|
||||
req.Domain = "number"
|
||||
req.Service = "set_value"
|
||||
|
||||
Reference in New Issue
Block a user