Implement Stringer interface for DeviceState (#49)
* Implement `Stringer` interface for `DeviceState` If device adoption fails the error message isn't very readable at the moment. ``` Error: unexpected state '10', wanted target '2'. ``` * Use `stringer`
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
//go:generate stringer -trimprefix DeviceState -type DeviceState
|
||||
type DeviceState int
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user