Explorar o código

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 hai 1 ano
pai
achega
6735634fac
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  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)
         await asyncio.sleep(5)
 
 
     try:
     try:
-        subdevice_id = config.get(CONF_DEVICE_CID)
         device = await hass.async_add_executor_job(
         device = await hass.async_add_executor_job(
             create_test_device,
             create_test_device,
             hass,
             hass,