Commit Graph

70 Commits

Author SHA1 Message Date
rospogrigio 59c95cd06c Update config_flow.py
Fix for Config flow that could not be loaded after update to HA 2025.12 (Issue #2124)
2026-01-29 12:02:56 +01:00
rospogrigio 5f9141790d Fixed tox errors 2023-05-24 11:50:27 +02:00
GaoJing 7cb065bf51 revert the default region 2023-03-16 16:06:58 +08:00
GaoJing 904f4feb6c Add entities during 'Edit a device' 2023-03-16 15:50:31 +08:00
rospogrigio 6d0e407e7e Tox fixes 2023-02-07 09:57:27 +01:00
rospogrigio 999d50ee4e Merge branch 'stability_fixes' of github.com:rospogrigio/localtuya-homeassistant into stability_fixes 2023-02-06 10:28:42 +01:00
rospogrigio c909349cde Improved logging 2023-02-06 10:28:31 +01:00
rospogrigio a47e7f7c6b Merge branch 'stability_fixes' of github.com:rospogrigio/localtuya into stability_fixes 2023-02-06 09:28:29 +00:00
rospogrigio 06d54f9c92 Merge branch 'stability_fixes' of github.com:rospogrigio/localtuya into stability_fixes 2023-02-06 10:25:34 +01:00
rospogrigio cf3221d4c8 Introduced update of local_key when editing a device 2023-02-06 10:17:57 +01:00
Daniel O'Connor 77ac5a86b6 Swap to int 2023-01-23 21:50:31 +10:30
Daniel O'Connor dccb32820b Adjust input to avoid putting a string into an int 2023-01-23 21:34:10 +10:30
rospogrigio 1e3b0476f8 Merge branch 'master' into device_debugging_option 2023-01-10 22:42:30 +01:00
rospogrigio c379645ea1 Introduced abort in config flow if all entities are deselected when editing a device 2023-01-10 22:37:15 +01:00
rospogrigio 39ef76bafb Fixed tox issues 2023-01-10 22:24:05 +01:00
rospogrigio 3bf69d69f0 Fixed tox issues 2023-01-10 22:24:05 +01:00
rospogrigio c6a9460d06 Introduced 3.4 protocol option in config flow 2023-01-10 22:24:05 +01:00
rospogrigio 33e0033b0a Introduced the possibility to select which devices should have the pytuya debug enabled 2023-01-10 18:18:35 +01:00
rospogrigio f990e848a5 Fixed tox issues 2023-01-09 22:48:10 +00:00
rospogrigio 5fbf5b39b4 Introduced 3.4 protocol option in config flow 2023-01-07 22:44:27 +01:00
sibowler 21f7af6ba8 Implementing safe default for devices not requiring RESET 2022-09-07 23:21:06 +10:00
sibowler ad1f757818 Implementing RESET Tuya function to enable devices which are stuck in a zombie mode to start responding to commands. Added configurable DPS for Reset command as found devices wouldn't 'wake up' unless they had exactly the right entries 2022-07-20 06:14:12 +10:00
sibowler 364569bad8 Rebase from upstream 2022-07-14 06:46:36 +10:00
rospogrigio d1a024148b Merge branch 'master' into localtuya_4.0 2022-06-06 14:05:22 +00:00
rospogrigio 4c0072f404 Introduced checkbox to choose whether to setup Cloud API account 2022-06-06 15:59:50 +02:00
rospogrigio d7f53ada07 Fixed Adding new device manually 2022-05-30 12:08:20 +02:00
rospogrigio f9b88c79a0 Fixed wrong 'already_configured' message when editing entities 2022-05-27 12:54:20 +02:00
rospogrigio cd39a3a74d tox fixes 2022-05-23 17:26:19 +02:00
rospogrigio 6c6b955048 First tox fixes 2022-05-23 15:31:08 +02:00
rospogrigio 6be13c5ba0 Obfuscated diagnostics; fixed IP auto-update; cleaned logs 2022-05-23 11:22:48 +00:00
rospogrigio cdfe8e4906 Finalized device editing, device diagnostics, auto-update of local key and IP 2022-05-23 13:18:56 +02:00
rospogrigio afc0230796 Introduced migration; fixed update when adding device 2022-05-23 13:18:56 +02:00
rospogrigio d4c20ebfed Modified config flow, introduced device deletion 2022-05-23 13:18:56 +02:00
Martín Villagra 515b3303e9 add polling option 2021-11-24 00:05:42 +00:00
Pierre Ståhl 654c6cdc62 Support adding and removing entities to devices (#191)
New entities can be added via + button under Integrations (like when
adding a new device) and entities can be removed from Options.
2020-12-17 21:36:24 +01:00
Pierre Ståhl f72cbc0b5a Run pylint from tox (#243) 2020-12-17 09:26:55 +01:00
Pierre Ståhl aeb27a4d75 Fix improper closing in config flow (#237)
Forgot to add an await to the close method in pytuya when validating the
device. This results in the connection never being closed after adding a
device, giving "connection resets" until the connection fails, the
device or Home Assistant is restarted.
2020-12-15 10:56:45 +01:00
Pierre Ståhl 27af622405 Store product key in config entry (#170) 2020-11-19 10:13:00 +01:00
Pierre Ståhl 1dbae752ef Give error if no DPS are found in config flow (#167)
Fixes #153
2020-11-18 11:39:11 +01:00
Pierre Ståhl c8a44019fa Improve discovery error output (#134) 2020-11-17 12:26:18 +01:00
Kendell R c1878f82e2 Improve GitHub Actions (#97)
* Delete hassfest.yaml

* Update and rename ci.yaml to tox.yaml

* Create combined.yaml

* Update hacs.json

* Update README.md

* Update combined.yaml

* Remove unused import

* Restored wrongly deleted line in cover.py

* Update config_flow.py

* Update __init__.py

Co-authored-by: Pierre Ståhl <pierre.staahl@gmail.com>
Co-authored-by: rospogrigio <49229287+rospogrigio@users.noreply.github.com>
2020-10-22 11:43:47 +02:00
Pierre Ståhl d96d02357b Use manual discovery if no device has been set ul 2020-10-21 10:49:29 +02:00
Pierre Ståhl 439f8aec0c Passively discover devices and update IP addresses 2020-10-21 10:49:29 +02:00
Pierre Ståhl 1d830552df Fix bug when connection fails 2020-10-16 22:43:00 +02:00
Pierre Ståhl cad31f1ffe Convert pytuya to asyncio 2020-10-14 13:10:20 +02:00
rospogrigio 1bd0a28045 Cover Curr and Set Pos DPS now are chosen in a drop-down menu 2020-10-02 10:08:52 +02:00
Pierre Ståhl 2879761eae Remove unneeded YAML import flag 2020-09-26 22:59:28 +02:00
Pierre Ståhl 63090ba985 Store DPS as integers in config entry
Also require protocol_version to be a string and validate version to be
supported.
2020-09-26 22:38:26 +02:00
rospogrigio 3259a4f654 Second part of one_device_only big merge 2020-09-26 22:38:26 +02:00
Pierre Ståhl 0048ce6d5e Move YAML config to component 2020-09-26 22:38:26 +02:00