瀏覽代碼

Config: don't default IP address to Auto

Although Auto works when localtuya is not installed, it causes a log
message telling the user to report a bug, due to the underlying
tinytuya library not being async.

This is annoying, and explicitly setting an IP address handles dropped
connection recovery better, so try to avoid steering users towards using
Auto by not defaulting to it.

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

+ 1 - 1
custom_components/tuya_local/config_flow.py

@@ -34,7 +34,7 @@ class ConfigFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
     async def async_step_user(self, user_input=None):
         errors = {}
         devid_opts = {}
-        host_opts = {"default": "Auto"}
+        host_opts = {"default": ""}
         key_opts = {}
         proto_opts = {"default": 3.3}
         polling_opts = {"default": False}