ソースを参照

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}