add sensor handling.
This commit is contained in:
@@ -23,8 +23,16 @@ func (c SetState) CommandDescription() string {
|
||||
return fmt.Sprintf("SetState(%s, %s)", c.ID, c.State)
|
||||
}
|
||||
|
||||
func (c SetState) VerboseKey() string {
|
||||
return "SetState"
|
||||
}
|
||||
|
||||
type SetStateBatch map[string]device.State
|
||||
|
||||
func (c SetStateBatch) CommandDescription() string {
|
||||
return fmt.Sprintf("SetStateBatch(%d devices)", len(c))
|
||||
}
|
||||
|
||||
func (c SetStateBatch) VerboseKey() string {
|
||||
return "SetStateBatch"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user