i cannot figure out how to allow an string value to be empty, see my code exampe in my options flow schema:
vol.Optional( CONF_DISABLE_ATTRIBUTE_UPDATES, default=self.config_entry.options.get( CONF_DISABLE_ATTRIBUTE_UPDATES, None ), ): str,
I also tried things like cv.Any(None, cv.string) where cv is homeassistant.helpers.config_validation which results in a ValueError. I saw a lot of code samples using this, nothing is working for me.
With the above exampe I am not able to empty the field, see the gif here.
First I try to emtpy it (which is ignored, and when debugging the config flow the user_input contains the old string). Only thing working is replacing the content with a space.
The whole source file is here: hacs-govee/config_flow.py at 7893ad19cb99c1c95ba3d7d915ccb138e151300d · LaggAt/hacs-govee · GitHub
How can I fix or work around this? Please help!