fix: preserve batch result compatibility
This commit is contained in:
@@ -5,9 +5,17 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"math"
|
||||
"time"
|
||||
)
|
||||
|
||||
const (
|
||||
// PropertyResultCodeMissing classifies a missing GetMany result locally and is never returned by upstream.
|
||||
PropertyResultCodeMissing int = math.MinInt32
|
||||
// PropertyResultCodeDuplicate classifies duplicate GetMany results locally and is never returned by upstream.
|
||||
PropertyResultCodeDuplicate int = math.MinInt32 + 1
|
||||
)
|
||||
|
||||
type Home struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
@@ -163,7 +171,6 @@ type DevicePropertyResult struct {
|
||||
Name string
|
||||
Value any
|
||||
Code int
|
||||
Err error `json:"-"`
|
||||
}
|
||||
|
||||
type ActionRequest struct {
|
||||
|
||||
Reference in New Issue
Block a user