Просмотр исходного кода

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

Issue #2419
Jason Rumney 1 год назад
Родитель
Сommit
2660e3b94d
1 измененных файлов с 1 добавлено и 1 удалено
  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"])