refactorings.

This commit is contained in:
2022-08-21 11:17:42 +02:00
parent ae68679228
commit b303a623f6
14 changed files with 166 additions and 122 deletions
+6
View File
@@ -22,3 +22,9 @@ func (c SetState) Matches(driver string) (sub string, ok bool) {
func (c SetState) CommandDescription() string {
return fmt.Sprintf("SetState(%s, %s)", c.ID, c.State)
}
type SetStateBatch map[string]device.State
func (c SetStateBatch) CommandDescription() string {
return fmt.Sprintf("SetStateBatch(%d devices)", len(c))
}