I’m getting below Template Warnings, where do I need to add the defaults so the warnings will be gone?
If you need more info, please let me know.
Effective: >
{{as_timestamp(state_attr('sensor.weatherbit_weather_alerts','alerts')
[0].effective_local)|timestamp_custom('%c')}}
Expires: >
{{as_timestamp(state_attr('sensor.weatherbit_weather_alerts','alerts')
[0].expires_local)|timestamp_custom('%c')}}
Template warning: 'timestamp_custom' got invalid input 'None' when rendering template '{{as_timestamp(state_attr('sensor.weatherbit_weather_alerts','alerts') [0].effective_local)|timestamp_custom('%c')}}' but no default was specified. Currently 'timestamp_custom' will return 'None', however this template will fail to render in Home Assistant core 2021.12
Template warning: 'as_timestamp' got invalid input 'None' when rendering template '{{as_timestamp(state_attr('sensor.weatherbit_weather_alerts','alerts') [0].expires_local)|timestamp_custom('%c')}}' but no default was specified. Currently 'as_timestamp' will return 'None', however this template will fail to render in Home Assistant core 2021.12
Template warning: 'timestamp_custom' got invalid input 'None' when rendering template '{{as_timestamp(state_attr('sensor.weatherbit_weather_alerts','alerts') [0].expires_local)|timestamp_custom('%c')}}' but no default was specified. Currently 'timestamp_custom' will return 'None', however this template will fail to render in Home Assistant core 2021.12