Sfoglia il codice sorgente

Return the list from conf_types.

No point building the list then not returning it.
Jason Rumney 4 anni fa
parent
commit
c95b8b985d
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      custom_components/tuya_local/configuration.py

+ 1 - 0
custom_components/tuya_local/configuration.py

@@ -21,6 +21,7 @@ def conf_types():
     for cfg in available_configs():
         parsed = TuyaDeviceConfig(cfg)
         types.append(parsed.legacy_type)
+    return types
 
 
 INDIVIDUAL_CONFIG_SCHEMA_TEMPLATE = [