Przeglądaj źródła

Cloud: device id is saved as "id" in cloud device record.

Issue #2419
Jason Rumney 1 rok temu
rodzic
commit
2660e3b94d
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

@@ -377,7 +377,7 @@ class ConfigFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
                 self.__cloud_device["product_id"],
             )
             self.init_cloud()
-            response = self.cloud.async_get_datamodel(self.__cloud_device["device_id"])
+            response = self.cloud.async_get_datamodel(self.__cloud_device["id"])
             if response and response["result"] and response["result"]["model"]:
                 model = json.loads(response["result"]["model"])