flobz / psacc-ha

psa_car_controller addons for Home Assistant
GNU General Public License v3.0
50 stars 46 forks source link

Warning on log in invalid date #18

Closed landaisbenj closed 2 years ago

landaisbenj commented 2 years ago

Hello, i always have this warning on log :

2022-01-20 10:32:07 WARNING (MainThread) [homeassistant.components.sensor.helpers] sensor.psa rendered invalid date {"embedded": null, "links": {"_self": {"deprecation": null, "href": "https://api.groupe-psa.com/connectedcar/v4/user/vehicles/......

Did you know why ?

landaisbenj commented 2 years ago

My bad, it's in mine configuration...

landaisbenj commented 2 years ago

After modifying my configuration, i always have an warning message...

sensor PSA:
  - platform: rest
    resource_template: http://192.168.0.100:5000/get_vehicleinfo/VR3UHZKXZLT034328?from_cache=1
    scan_interval: 60
    timeout: 30
    verify_ssl: false
    name: PSA
    device_class: date
    json_attributes:
      - energy
      - kinetic
      - timed_odometer
      - last_position
      - preconditionning
      - doors_state
      - ignition
landaisbenj commented 2 years ago

My bad too... with copy paste, i saw my mistake...