Hello,
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 init.py
how do I get this param in the test_sensor.py or sensor.py
Hello,
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 init.py
how do I get this param in the test_sensor.py or sensor.py
You store your state and shared objects in hass.data[DOMAIN] and access it from everywhere
Sorry , I missed to mention that this is for ESPHOME not HA
No, my bad