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
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Paul Annekov
97ed7fbb3f
Switched from tuyapy to tuyaha as 1st one is not maintained ( #24821 )
2019-07-06 10:39:49 -07:00
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit fe7171b4cd
.
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit 391355ee2c
.
* Remove dependencies and requirements
* Fix flake8 complaints
* Fix more flake8 complaints
* Revert non-component removals
2019-04-12 10:13:30 -07:00
Fabian Affolter
127c55e0c1
Update file header ( #21023 )
...
* Update file header
* Update file header
* Update file header
* Update file header
* Update file header
* Fix lint issues
2019-02-13 21:21:14 +01:00
Paulus Schoutsen
e2d3c27e85
Embed all platforms into components ( #20677 )
...
* Consolidate all components with platforms
* Organize tests
* Fix more tests
* Fix Verisure tests
* one final test fix
* Add change
* Fix coverage
2019-02-02 07:13:16 -08:00