Skip to content

Commit

Permalink
Correct the error string for TurnOff function (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmarklloyd authored Nov 25, 2024
1 parent 787c33b commit 5ea6be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/hs100/hs100.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ type setRelayResponse struct {
func (hs100 *Hs100) TurnOff() error {
resp, err := hs100.commandSender.SendCommand(hs100.Address, turnOffCommand)
if err != nil {
return errors.Wrap(err, "error on sending turn on command for device")
return errors.Wrap(err, "error on sending turn off command for device")
}

r, err := parseSetRelayResponse(resp)
Expand Down

0 comments on commit 5ea6be3

Please sign in to comment.