select.py 438 B

12345678910111213141516
  1. """
  2. Setup for different kinds of Tuya selects
  3. """
  4. from .generic.select import TuyaLocalSelect
  5. from .helpers.config import async_tuya_setup_platform
  6. async def async_setup_entry(hass, config_entry, async_add_entities):
  7. config = {**config_entry.data, **config_entry.options}
  8. await async_tuya_setup_platform(
  9. hass,
  10. async_add_entities,
  11. config,
  12. "select",
  13. TuyaLocalSelect,
  14. )