Some time ago I redefined all my sensor by adding “default” values to comply with HA 2022.1 version. Today I received an error as one of MQTT date/time reports was a bit weird:
2022-01-11 05:06:36 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'as_timestamp' got invalid input '54433-86-201T245:21:193' when rendering template '{{ as_timestamp(value) | timestamp_custom('%-H:%M:%S', default='0:00:00') }}' but no default was specified. Currently 'as_timestamp' will return 'None', however this template will fail to render in Home Assistant core 2022.1
Obviously the default in the template is not correctly defined, but I don’t know how to do it properly for this case. Anybody willing to help?