Avoid duplicating template sensors using YAML anchors and this.entity_id

This has been around for quite a while.
I use a couple of anchors here and there.