mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-07 13:15:19 -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 */
|
/* Public API */
|
||||||
|
|
||||||
func (ib Number) SetValue(entityId string, value int) {
|
func (ib Number) SetValue(entityId string, value float32) {
|
||||||
req := NewBaseServiceRequest(entityId)
|
req := NewBaseServiceRequest(entityId)
|
||||||
req.Domain = "number"
|
req.Domain = "number"
|
||||||
req.Service = "set_value"
|
req.Service = "set_value"
|
||||||
|
|||||||
Reference in New Issue
Block a user