willemwouters / localtuya_synced

local handling for Tuya devices, clone with: git clone --recursive https://github.com/willemwouters/localtuya_synced.git and follow manual installation steps
GNU General Public License v3.0
5 stars 3 forks source link

I can't add the device #5

Open JLOFPV opened 1 year ago

JLOFPV commented 1 year ago

I can't add the device. Here the error log.

Logger: custom_components.localtuya.config_flow Source: custom_components/localtuya/config_flow.py:246 Integration: LocalTuya integration (documentation, issues) First occurred: 09:02:39 (1 occurrences) Last logged: 09:02:39

Unexpected exception Traceback (most recent call last): File "/config/custom_components/localtuya/config_flow.py", line 591, in async_step_configure_device self.dps_strings = await validate_input(self.hass, user_input) File "/config/custom_components/localtuya/config_flow.py", line 246, in validate_input module = import_module('custom_components.localtuya.tinytuya.tinytuya') File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1004, in _find_and_load_unlocked ModuleNotFoundError: No module named 'custom_components.localtuya.tinytuya.tinytuya'

prvakt commented 1 year ago

You just need to get this repo tinytuya and copy tinytuya folder to the /config/custom_components/localtuya/tinytuya/tinytuya (has to be a nested tinytuya in tinytuya folder otherwise the HA logs were shouting "ModuleNotFoundError: No module named 'custom_components.localtuya.tinytuya.tinytuya'").

JLOFPV commented 1 year ago

Thank you very much, this has worked for me.