Explorar o código

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

Jason Rumney %!s(int64=4) %!d(string=hai) anos
pai
achega
b9ff2339d5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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",