Kaynağa Gözat

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 1 yıl önce
ebeveyn
işleme
ed4ccdfe43

+ 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):
     async def async_step_user(self, user_input=None):
         errors = {}
         errors = {}
         devid_opts = {}
         devid_opts = {}
-        host_opts = {"default": "Auto"}
+        host_opts = {"default": ""}
         key_opts = {}
         key_opts = {}
         proto_opts = {"default": 3.3}
         proto_opts = {"default": 3.3}
         polling_opts = {"default": False}
         polling_opts = {"default": False}