Background: Nearly all of my smart home lights are controlled by wall switches. It is nice that you are able to do this in the UI helper; I ask and recommend that it is also available by yaml entry. YAML has so many advantages. First you can easily review the text and make modifications and additions much faster. Secondly, as a yaml file, you have the control. I am not saying that I do not us the UI features. Once the function is complete, I transfer it as yaml to the appropriate place in my file system.
In my research on the subject, I thought the function was available in the file
The customization passes validation, in the Server control, but the device class does not get updated as expected. Additionally, once adding the helper in the UI, there seems no way of removing or editing it, as there would be in a yaml chunk. Thanks you in advance, as I appreciate all that the community does to make HA as wonderful as it is.