Possible to put a config inside a sensor?

The PS5 npsso changes every 2 months, and I was thinking of instead of putting it in Secrets.yaml that if I put it in a text sensor, and when that state changes automate an addon restart.

In the addon config, it currently refers to !secrets npsso, could I change it to the state of text_sensor.npsso and it would find it?

Hello mxp83,

This might help.
Trigger based template sensor to store global variables.