Răsfoiți Sursa

Return the list from conf_types.

No point building the list then not returning it.
Jason Rumney 4 ani în urmă
părinte
comite
c95b8b985d
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  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 = [