Просмотр исходного кода

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 год назад
Родитель
Сommit
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,