Skip to content

Commit

Permalink
update string reprasentation of door status
Browse files Browse the repository at this point in the history
  • Loading branch information
halacs committed Jan 31, 2024
1 parent 22da68e commit fd599e7
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions sdk/payload/HmGetTransitionResponse.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"bytes"
"encoding/binary"
"encoding/hex"
"fmt"
"encoding/json"
"time"
)

Expand Down Expand Up @@ -52,17 +52,11 @@ func (hgt *HmGetTransitionResponse) Encode() []byte {
}

func (hgt *HmGetTransitionResponse) String() string {
return fmt.Sprintf("HmGetTransitionResponse[StateInPercent: %v, DesiredStateInPerced: %v, Error: %v, AutoClose: %v, DriveTime: %v, Gk: %v, Hcp: %v, Exst: %v, Time: %v]", hgt.StateInPercent,
hgt.DesiredStateInPercent,
hgt.Error,
hgt.AutoClose,
hgt.DriveTime,
hgt.Gk,
hgt.Hcp,
hgt.Exst,
hgt.Time,
// hgt.IgnoreRetries,
)
json, err := json.Marshal(hgt)
if err != nil {
panic(err)
}
return string(json)
}

func (hgtr *HmGetTransitionResponse) Equal(o *HmGetTransitionResponse) bool {
Expand Down

0 comments on commit fd599e7

Please sign in to comment.