Fix a crash in State.getLatLong()

This commit is contained in:
Lubos Dolezel
2023-05-24 17:23:50 +02:00
parent 1dd8eaa58d
commit ff9f6cb95e
2 changed files with 28 additions and 9 deletions

5
app.go
View File

@@ -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,