mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-07 18:07:09 -06:00
Fix default golanglint-ci errors
These errors show up when simply running `golangci-lint run ./...` on the project.
This commit is contained in:
5
state.go
5
state.go
@@ -7,6 +7,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/golang-module/carbon"
|
||||
|
||||
"saml.dev/gome-assistant/internal/http"
|
||||
)
|
||||
|
||||
@@ -69,8 +70,8 @@ func (s *StateImpl) Get(entityId string) (EntityState, error) {
|
||||
return EntityState{}, err
|
||||
}
|
||||
es := EntityState{}
|
||||
json.Unmarshal(resp, &es)
|
||||
return es, nil
|
||||
err = json.Unmarshal(resp, &es)
|
||||
return es, err
|
||||
}
|
||||
|
||||
func (s *StateImpl) Equals(entityId string, expectedState string) (bool, error) {
|
||||
|
||||
Reference in New Issue
Block a user