Browse Source

TuyaLocalDevice is not in init.

The real source of init problems. It seems none of the unit tests even load this file.
Jason Rumney 4 years ago
parent
commit
c54cb7e198
1 changed files with 2 additions and 1 deletions
  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__)