mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-05 23:15:07 -06:00
make some things private
This commit is contained in:
3
state.go
3
state.go
@@ -17,10 +17,9 @@ type EntityState struct {
|
||||
State string `json:"state"`
|
||||
Attributes map[string]any `json:"attributes"`
|
||||
LastChanged time.Time `json:"last_changed"`
|
||||
LastUpdated time.Time `json:"last_updated"`
|
||||
}
|
||||
|
||||
func NewState(c *http.HttpClient) *State {
|
||||
func newState(c *http.HttpClient) *State {
|
||||
return &State{httpClient: c}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user