Sfoglia il codice sorgente

TuyaLocalDevice is not in init.

The real source of init problems. It seems none of the unit tests even load this file.
Jason Rumney 5 anni fa
parent
commit
c54cb7e198
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      custom_components/tuya_local/config_flow.py

+ 2 - 1
custom_components/tuya_local/config_flow.py

@@ -5,7 +5,8 @@ from homeassistant import config_entries, data_entry_flow
 from homeassistant.const import CONF_HOST, CONF_NAME
 from homeassistant.core import HomeAssistant, callback
 
-from . import DOMAIN, individual_config_schema, TuyaLocalDevice
+from . import DOMAIN, individual_config_schema
+from .device import TuyaLocalDevice
 from .const import CONF_DEVICE_ID, CONF_LOCAL_KEY
 
 _LOGGER = logging.getLogger(__name__)