import esphome.codegen as cg gree_ns = cg.esphome_ns.namespace("gree")