소스 검색

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}