tobiasehlert / teslamateapi

TeslaMateApi is a RESTful API to get data collected by self-hosted data logger TeslaMate in JSON
MIT License
94 stars 22 forks source link

Bug: various endpoint car name faulty #244

Closed tobiasehlert closed 1 year ago

tobiasehlert commented 1 year ago

The status, update and more endpoints are not returning car_name correct. The cars endpoint is returning correct, so NullString is working as expected there.

example URL:

/api/v1/cars/1/status

example JSON response:

{
    "data": {
        "car": {
            "car_id": 1,
            "car_name": {
                "String": "",
                "Valid": false
            }
        },

expected JSON response:

{
    "data": {
        "car": {
            "car_id": 1,
            "car_name":""
        },

rel #242