-
Hi, I am trying to run the input_select "reload" service, and can't work out how. The following have all resulted in errors: Help much appreciated. Alternatively, how can I access the "Initial" attribute on an input_select and input_text objects, perhaps using the hass object - because those state variables don't record the "initial" attribute, unlike say input_number ? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Going through pyscript's own code allowed me to try a few things and eventually find an answer. from homeassistant.config import async_hass_config_yaml |
Beta Was this translation helpful? Give feedback.
Going through pyscript's own code allowed me to try a few things and eventually find an answer.
Might not be the best, but it works....
from homeassistant.config import async_hass_config_yaml
#Then in a function:
conf = async_hass_config_yaml(hass)
my_variable = conf['input_select']['my_name']['initial']