jaedle / golang-tplink-hs100

Yet another tp-link HS100 library for golang
MIT License
10 stars 4 forks source link

Wrong error contents for TurnOff() #123

Open maclermo opened 4 months ago

maclermo commented 4 months ago

Hi,

Thanks for this nice library that simply works.

I was scratching my head as to why my unit tests were failing while testing a "turn off" scenario.

Please take a look at the following:

https://github.com/jaedle/golang-tplink-hs100/blob/fd6397fd1373c8324ff596d097f11ab01989e71d/pkg/hs100/hs100.go#L72

The error message should be error on sending turn off command for device

Thanks!

jaedle commented 4 months ago

Hey 👋

thanks for the feedback, I hope I will come around tomorrow fixing this, thanks!