delzear / hass-formulaoneapi

Formula One API Integration Into Home Assistant
53 stars 10 forks source link

Error log Lovelace card #4

Closed Jurgenn22 closed 1 year ago

Jurgenn22 commented 3 years ago

Am I the only one getting a log error based on the input to the Lovelace card? Error: ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'None' has no attribute 'attributes' when rendering '{% set nr = states.sensor.formula_one_sensor.attributes.next_race %} {% if not(nr == None) %}

  {{ nr.raceName }}

Can you help me please?

delzear commented 1 year ago

Use the Formula One Card by marcokeeftl87. https://github.com/marcokreeft87/formulaone-card