Przeglądaj źródła

Build list of possible types from legacy_type, not config itself.

Jason Rumney 4 lat temu
rodzic
commit
b9ff2339d5
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      custom_components/tuya_local/config_flow.py

+ 1 - 1
custom_components/tuya_local/config_flow.py

@@ -45,7 +45,7 @@ class ConfigFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
 
         types = []
         async for type in self.device.async_possible_types():
-            types.append(type)
+            types.append(type.legacy_type)
         if types:
             return self.async_show_form(
                 step_id="type",