瀏覽代碼

has_returned_state is a property not a function

Jason Rumney 4 年之前
父節點
當前提交
d425296adb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      custom_components/tuya_local/config_flow.py

+ 1 - 1
custom_components/tuya_local/config_flow.py

@@ -107,4 +107,4 @@ async def async_test_connection(config: dict, hass: HomeAssistant):
         "Test", config[CONF_DEVICE_ID], config[CONF_HOST], config[CONF_LOCAL_KEY], hass
         "Test", config[CONF_DEVICE_ID], config[CONF_HOST], config[CONF_LOCAL_KEY], hass
     )
     )
     await device.async_refresh()
     await device.async_refresh()
-    return device.has_returned_state()
+    return device.has_returned_state