Franck Nijhof
1b6f880a27
Add model_id to Tuya devices, mark services correctly ( #122043 )
2024-07-17 00:09:18 +02:00
Marc Mueller
44049c34f9
Use PEP 695 type alias for ConfigEntry types ( #117632 )
2024-05-17 15:42:58 +02:00
Michael
12759b50cc
Store runtime data inside the config entry in Tuya ( #116822 )
2024-05-09 00:04:26 +02:00
Marc Mueller
062cc4bfce
Add empty line after module docstring [t-v] ( #112705 )
2024-03-08 10:35:23 -05:00
Marc Mueller
5f8ef37f2d
Update pylint to 3.0.4 ( #111229 )
...
* Update pylint to 3.0.4
* Use yield from
* Remove unnecessary pylint disable comments
2024-02-23 23:46:00 +01:00
Franck Nijhof
10d3b10da4
Improve Tuya token/reauth handling ( #109653 )
2024-02-04 22:56:22 +01:00
Franck Nijhof
82e1ed43f8
Migrate Tuya integration to new sharing SDK ( #109155 )
...
* Scan QR code to log in And Migrate Tuya integration to new sharing SDK (#104767 )
* Remove non-opt-in/out reporting
* Improve setup, fix unload
* Cleanup token listner, remove logging of sensitive data
* Collection of fixes after extensive testing
* Tests happy user config flow path
* Test unhappy paths
* Add reauth
* Fix translation key
* Prettier manifest
* Ruff format
* Cleanup of const
* Process review comments
* Adjust update token handling
---------
Co-authored-by: melo <411787243@qq.com>
2024-01-30 21:22:22 -05:00
Joost Lekkerkerker
a82410d5e9
Deduplicate constants E-Z ( #105657 )
2023-12-13 17:05:37 +01:00
Joost Lekkerkerker
e4453ace88
Add country code constant ( #105640 )
2023-12-13 16:50:46 +01:00
Franck Nijhof
b323295aa1
Clean up old config entry migration from Tuya ( #103026 )
2023-10-29 19:18:31 +01:00
Franck Nijhof
59f238b9a7
Clean up two year old entity migration from Tuya ( #103003 )
2023-10-29 14:47:24 +01:00
Ville Skyttä
b51c0f6ddc
Remove unnnecessary pylint configs from components [s-z]* ( #98925 )
2023-08-24 01:25:32 +02:00
Franck Nijhof
c56832bb2c
Enable Ruff SIM300 ( #86793 )
2023-01-30 11:03:23 +01:00
J. Nick Koston
cd03c49fc2
Wait for config entry platform forwards ( #73806 )
2022-07-09 17:27:42 +02:00
Marc Mueller
53245c6523
Update pylint to 2.13.0 ( #68656 )
2022-03-25 15:14:48 -07:00
Franck Nijhof
32d1e28dab
Clean up Tuya loggers ( #62999 )
2021-12-29 15:12:27 +01:00
Paulus Schoutsen
ce59ed2a5e
Guard cannot connect during Tuya init ( #61267 )
2021-12-08 21:21:33 +01:00
Franck Nijhof
c6157d5520
Migrate Tuya unique IDs for switches & lights ( #58631 )
2021-10-28 21:08:59 -07:00
Franck Nijhof
a4641a91ff
Ensure all devices show up in Tuya ( #58280 )
2021-10-23 15:00:53 +02:00
Franck Nijhof
4f2d313a4a
Remove device category filtering from Tuya init ( #58019 )
2021-10-19 10:56:37 +02:00
Franck Nijhof
6a72af63c2
Refactor Tuya climate platform ( #57609 )
2021-10-13 20:29:11 +02:00
Franck Nijhof
8ec38ef034
Refactor Tuya device handling ( #57545 )
...
* Refactor Tuya device handling
* Tweak
2021-10-12 16:49:46 +02:00
Franck Nijhof
e23d35c6f0
Move all Tuya device handling into device listener class ( #57523 )
2021-10-12 11:32:57 +02:00
Franck Nijhof
71a3daa8ce
Pass device manager directly in Tuya registry cleanup ( #57511 )
2021-10-11 20:36:46 -07:00
Franck Nijhof
f0abd5b815
Fix Tuya error when removing device ( #57512 )
2021-10-11 20:32:15 -07:00
Paulus Schoutsen
34544da449
Reinstate asking for country in Tuya flow ( #57142 )
2021-10-05 22:32:48 +02:00
Franck Nijhof
86852df2fc
Bump tuya-iot-py-sdk to 0.5.0 ( #57110 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-10-05 10:21:55 -07:00
Franck Nijhof
80a04124a2
Small code styling tweaks for Tuya ( #57102 )
2021-10-05 12:59:51 +02:00
Franck Nijhof
2059cbacbd
Remove Python shebang line from Tuya integration files ( #57103 )
2021-10-05 11:12:55 +02:00
Franck Nijhof
f364d53c7b
Prevent Tuya from accidentally logging credentials in debug mode ( #57100 )
2021-10-05 10:22:28 +02:00
Oliver Ou
d3b1ccb668
Tuya v2 Integration Release ( #56820 )
...
Co-authored-by: 乾启 <18442047+tsutsuku@users.noreply.github.com>
Co-authored-by: dengweijun <dengweijunben@gmail.com>
Co-authored-by: dengweijun <mengzi.deng@tuya.com>
Co-authored-by: erchuan <jie.zheng@tuya.com>
Co-authored-by: erchuan <erchuan365@outlook.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-09-30 12:02:56 +02:00
Daniel Hjelseth Høyer
fbad453c89
Pylint 2.9.3 ( #52972 )
...
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-07-14 21:44:57 -07:00
tkdrob
d1c4d0de49
Use bool annotations for setup entries ( #51166 )
2021-05-27 17:39:06 +02:00
Franck Nijhof
b2cee2e602
Remove YAML configuration from Tuya ( #50360 )
...
* Remove YAML configuration from Tuya
* Keep deprecation warning
2021-05-09 14:26:26 -04:00
J. Nick Koston
4b74c57285
Reduce config entry setup/unload boilerplate T-U ( #49786 )
2021-04-27 22:19:57 +02:00
J. Nick Koston
94c803d83b
Cancel tuya updates on the stop event ( #49324 )
2021-04-16 21:01:24 -07:00
Quentame
198ecb0945
Uniformize platform setup ( #47101 )
...
* A platform is not a component
* Fix dynalite
* SUPPORTED_PLATFORMS --> PLATFORMS
* In tests
* In tests 2
* Fix SmartThings
* Fix ZHA test
* Fix Z-Wave
* Revert Z-Wave
* Use PLATFORMS const in ambient_station
* Fix ihc comment
2021-03-02 21:43:59 +01:00
Paulus Schoutsen
9e07910ab0
Mark entities as unavailable when they are removed but are still registered ( #45528 )
...
* Mark entities as unavailable when they are removed but are still registered
* Add sync_entity_lifecycle to collection helper
* Remove debug print
* Lint
* Fix tests
* Fix tests
* Update zha
* Update zone
* Fix tests
* Update hyperion
* Update rfxtrx
* Fix tests
* Pass force_remove=True from integrations
Co-authored-by: Erik <erik@montnemery.com>
2021-02-08 10:45:46 +01:00
Alex Szlavik
fca8841e34
Retry tuya setup on auth rate limiting ( #44001 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-12-08 11:32:48 +01:00
Erik Montnemery
a5e5c5c7e6
Exclude disabled entities from async_entries_for_device ( #43665 )
2020-11-27 09:03:44 +01:00
ollo69
c4b3cf0788
Update tuyaha to 0.0.8 and adapt code ( #41375 )
2020-10-27 20:26:18 -05:00
Ville Skyttä
b4bac0f7a0
Exception chaining and wrapping improvements ( #39320 )
...
* Remove unnecessary exception re-wraps
* Preserve exception chains on re-raise
We slap "from cause" to almost all possible cases here. In some cases it
could conceivably be better to do "from None" if we really want to hide
the cause. However those should be in the minority, and "from cause"
should be an improvement over the corresponding raise without a "from"
in all cases anyway.
The only case where we raise from None here is in plex, where the
exception for an original invalid SSL cert is not the root cause for
failure to validate a newly fetched one.
Follow local convention on exception variable names if there is a
consistent one, otherwise `err` to match with majority of codebase.
* Fix mistaken re-wrap in homematicip_cloud/hap.py
Missed the difference between HmipConnectionError and
HmipcConnectionError.
* Do not hide original error on plex new cert validation error
Original is not the cause for the new one, but showing old in the
traceback is useful nevertheless.
2020-08-28 13:50:32 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Franck Nijhof
53545c984b
Log lines do not end with a full stop ( #37527 )
2020-07-05 23:04:19 +02:00
ollo69
f4e4ea10e5
Minor Tuya Fix ( #35497 )
2020-05-11 08:45:12 -04:00
ollo69
b3ee54b124
Add config flow for Tuya ( #35422 )
...
* Added Tuya config flow
* Added test config_flow
* Fixed log error message
* Add test requirements
* Lint Fix
* Fix Black formatting
* Added pylint directive
Added pylint:disable=unused-import in config_flow.py
* Implementation requested changes
* Update CodeOwners
* Removed device registry cleanup
* Force checks
* Force checks
* Fix implemetation
- Set config schema "deprecated"
- Removed async from update_callback
* Updating test
* Fix formatting
* Config Flow test fix
- mock out async_setup and async_setup_entry
* Fix formatting
2020-05-10 22:01:00 -05:00
ollo69
15569f1e7f
Fix tuya network failure startup ( #34057 )
...
* Tuya initialization retry on failure
* Rename exception
* Changed managed exception
* Manage different cases of ConnectionError
* Log messages correction
* Test always catching exceptions
* Update for Lint
* Update tuya library to 0.0.6
- Catch new library exception
* Tuya initialization retry on failure
* Rename exception
* Changed managed exception
* Manage different cases of ConnectionError
* Log messages correction
* Test always catching exceptions
* Update for Lint
* Update tuya library to 0.0.6
- Catch new library exception
* Catch wrong credential
* Revert "Catch wrong credential"
This reverts commit 7fb797de52
.
* Catch wrong credential
* Remove trailing whitespace
* Black formatting
* Import Exception from tuyaapi
* Remove str to exception
* Force CI checks
* Force CI checks
* Rebase conflict
* Tuya initialization retry on failure
* Rename exception
* Changed managed exception
* Manage different cases of ConnectionError
* Log messages correction
* Test always catching exceptions
* Update for Lint
* Update tuya library to 0.0.6
- Catch new library exception
* Catch wrong credential
* Revert "Catch wrong credential"
This reverts commit 7fb797de52
.
* Tuya initialization retry on failure
* Rename exception
* Changed managed exception
* Catch wrong credential
* Force CI checks
* Force CI checks
* Rebase conflict
* Rebase
* Force Test
* Force Test
2020-04-29 13:46:27 +02:00
J. Nick Koston
a5b98b40ac
Resolve delays with tuya devices ( #34512 )
2020-04-21 20:29:42 -07:00
Franck Nijhof
886308a953
String formatting improvements ( #33653 )
2020-04-04 21:39:22 +02:00
springstan
72995f6ce6
Move imports to top for tuya ( #29467 )
2019-12-04 21:11:13 -08:00