mirror of
https://github.com/tobiasehlert/teslamateapi.git
synced 2026-02-27 09:54:18 +08:00
Update v1_TeslaMateAPICarsDrives.go
Continuing updates on Drives API
This commit is contained in:
@@ -229,6 +229,11 @@ func TeslaMateAPICarsDrivesV1(c *gin.Context) {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
// if no errors, but DrivesData is empty, return a valid response with an empty set
|
||||
if len(DrivesData) == 0 {
|
||||
ValidResponse = true
|
||||
}
|
||||
|
||||
//
|
||||
// build the data-blob
|
||||
|
||||
Reference in New Issue
Block a user