Explorar o código

Return the list from conf_types.

No point building the list then not returning it.
Jason Rumney %!s(int64=4) %!d(string=hai) anos
pai
achega
c95b8b985d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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 = [