mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-05 23:15:07 -06:00
Fix a crash in State.getLatLong()
This commit is contained in:
5
app.go
5
app.go
@@ -98,7 +98,10 @@ func NewApp(request NewAppRequest) (*App, error) {
|
||||
|
||||
wsWriter := &ws.WebsocketWriter{Conn: conn}
|
||||
service := newService(wsWriter, ctx, httpClient)
|
||||
state := newState(httpClient, request.HomeZoneEntityId)
|
||||
state, err := newState(httpClient, request.HomeZoneEntityId)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return &App{
|
||||
conn: conn,
|
||||
|
||||
Reference in New Issue
Block a user