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:
Joshua Spence
2021-09-24 13:55:12 +10:00
committed by GitHub
parent 124f349da4
commit ff2854e943
6 changed files with 72 additions and 0 deletions

1
go.mod
View File

@@ -11,5 +11,6 @@ require (
github.com/tj/assert v0.0.3
github.com/ulikunitz/xz v0.5.10
github.com/xor-gate/ar v0.0.0-20170530204233-5c72ae81e2b7
golang.org/x/tools v0.1.6
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
)