Here’s a better way to show the last known value of a sensor:
Create a Trigger-based Template Sensor (the NOTE section of this post)