Thx, and for the cleanup too!
Didn’t see that in the docs. In my situation it was availability_template because i’m using the template inside a sensor.
Well they actually changed that. It’s availability in sensors too unless you’re using the legacy format. But same idea either way, glad it works for you