delzear / hass-formulaoneapi

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

Circuit Image Now Showing #23

Closed geroulas closed 2 years ago

geroulas commented 2 years ago

For anyone having problem with Circuit png not showing. When country: Saudi Arabia, has 2 words you need to add |replace(' ','_') after {{nr.Circuit.Location.country in your Markdown card.

<img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/{{nr.Circuit.Location.country|replace(' ','_')}}_Circuit.png.transform/7col/image.png">