import esphome.codegen as cg template_ns = cg.esphome_ns.namespace("template_")