AlexandrErohin / home-assistant-flightradar24

Flightradar24 integration for Home Assistant
https://community.home-assistant.io/t/custom-component-flightradar24
MIT License
148 stars 15 forks source link

Lovelace Card Bug #71

Open cataseven opened 23 hours ago

cataseven commented 23 hours ago

If any of flights under sensor.flightradar24_additional_tracked returns no data then lovelace card show nothing including the other tracked flights with enough info.

Ex:

Add 4 flights. Lovelace card shows all. If 1 of the flights returns no info (not enough attributes) then also the other 3 flights is not shown on the card.

AlexandrErohin commented 3 hours ago

@cataseven Hi I have fixed the markdown. Please try it

cataseven commented 1 hour ago

Thank you so mueh. Tested and done.

cataseven commented 1 hour ago

Reopen after below issue. Please see the 4th flight below

  - callsign: NSZ5529
    flight_number: D85529
    aircraft_registration: null
    tracked_type: schedule

state_class: total flights:

AlexandrErohin commented 58 minutes ago

@cataseven Yes, the markdown works for this also see this part

...
{% else%}
          <ha-icon icon="mdi:airplane"></ha-icon>{{ flight.flight_number }} - {{ flight.callsign }} - {{ flight.tracked_type }}
          {% endif%}{% endfor %}