litui / esphome-components

Litui's ESPHome Components repository - NeewerLight
MIT License
10 stars 4 forks source link

Make validations more strict and find the proper way to preset certain fields #4

Open litui opened 2 years ago

litui commented 2 years ago

My understanding of the Python validations and code generation routines is still elementary. I need to clean up the validation code for Neewer Light support and determine the best way to preset specific configuration values. e.g.: do I set the values in object instantiation in C++ or do I make the config options available and set intelligent defaults?