As petro says, you could use an automation for this with the input_select.set_options action, which you could run at HA start, or triggered by a state change in a given sensor.
However, if you wanted to follow his suggestion regarding a select template, which combines the helper and automation in one place, then I found this post by Didgeridrew to be really helpful.