Passing param from Custom Component to Sensor

I am writing a custom component , that take a global param for all sensor of this implemenation

param is declared as an optional cv.string in the

how do I get this param in the or

You store your state and shared objects in[DOMAIN] and access it from everywhere

Sorry , I missed to mention that this is for ESPHOME not HA

No, my bad :slight_smile: