瀏覽代碼

config_flow: remove redundant local variable

Last change moved some code into a separate function, leaving behind
a local variable that was no longer used.
Jason Rumney 1 年之前
父節點
當前提交
6735634fac
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      custom_components/tuya_local/config_flow.py

+ 0 - 1
custom_components/tuya_local/config_flow.py

@@ -621,7 +621,6 @@ async def async_test_connection(config: dict, hass: HomeAssistant):
         await asyncio.sleep(5)
 
     try:
-        subdevice_id = config.get(CONF_DEVICE_CID)
         device = await hass.async_add_executor_job(
             create_test_device,
             hass,