Alerting template stops working

I think this might be related to this Alert problem

Try take out / change that php echo line as a test. Also, i think the lines after should be
{{ $value['sensor_prev'] }} °C and {{ $value['sensor_limit'] }} °C