Joost Lekkerkerker and GitHub
62be82fd3c
Also migrate completion time entities in SmartThings ( #141572 )
2025-03-27 16:36:45 +01:00
Joost Lekkerkerker and GitHub
63a86763b1
Migrate unique ids in SmartThings ( #141308 )
...
* Migrate unique ids in SmartThings
* Migrate
* Migrate
* Migrate
* Fix
* Fix
2025-03-26 10:23:20 +01:00
Joost Lekkerkerker and GitHub
11877a3b12
Bump pysmartthings to 3.0.0 ( #141058 )
...
* Bump pysmartthings to 2.7.5
* Bump to pysmartthings 3.0.0
2025-03-25 08:37:32 +01:00
Joost Lekkerkerker and GitHub
1492c59abe
Delete deleted devices on runtime in SmartThings ( #141080 )
2025-03-22 13:12:37 +01:00
Joost Lekkerkerker and GitHub
5961a46fc0
Start reauth for SmartThings if token expired ( #141082 )
2025-03-22 13:12:24 +01:00
71159c755f
Delete subscription on shutdown of SmartThings ( #140135 )
...
* Cache subscription url in SmartThings
* Cache subscription url in SmartThings
* Fix
* Fix
* Fix
* Fix
* Fix
* Fix
* Fix
* Fix
* Bump pysmartthings to 2.7.1
* 2.7.2
---------
Co-authored-by: Martin Hjelmare <[email protected] >
2025-03-11 15:33:32 +01:00
Joost Lekkerkerker and GitHub
e51154ae69
Restore SmartThings button event ( #140044 )
...
* Restore SmartThings button event
* Fix
2025-03-07 15:46:00 +01:00
Joost Lekkerkerker and GitHub
2d6068b842
Create device for the hub in SmartThings ( #139545 )
...
* Create device for the hub in SmartThings
* Create device for the hub in SmartThings
* Create device for the hub in SmartThings
2025-02-28 22:58:35 +01:00
Joost Lekkerkerker and GitHub
39bc37d225
Remove orphan devices on startup in SmartThings ( #139541 )
2025-02-28 20:33:25 +01:00
Joost Lekkerkerker and GitHub
bb120020a8
Refactor SmartThings ( #137940 )
2025-02-26 15:14:04 +01:00
Joost Lekkerkerker and GitHub
fe8a93d62f
Add reauthentication to SmartThings ( #135673 )
...
* Add reauthentication to SmartThings
* Add reauthentication to SmartThings
* Add reauthentication to SmartThings
* Add reauthentication to SmartThings
2025-01-18 18:41:24 +01:00
Erik Montnemery and GitHub
3e62c6ae2f
Move core config functionality to its own module ( #129065 )
...
* Move core config functionality to its own module
* Adjust test
2024-10-24 13:34:51 +02:00
epenet and GitHub
f66b539027
Add missing hass type hint in component tests (s) ( #124272 )
2024-08-20 12:53:29 +02:00
Sid and GitHub
5f055a64bb
Enable Ruff B017 ( #115335 )
2024-04-15 22:25:09 +02:00
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <[email protected] >
Co-authored-by: Marc Mueller <[email protected] >
Co-authored-by: J. Nick Koston <[email protected] >
2024-03-26 00:02:16 +01:00
J. Nick Koston and GitHub
4f18f0d902
Fix setup timings when config entry platform loads are not awaited ( #113959 )
...
* Move setup time logging into the context manager
We were fetching the time twice but since the context
manager already has the timing, move it there
* remove log setup assertions from integration test
* tweak logging to give us better data for tracking issues
* redundant
* adjust
* preen
* fixes
* adjust
* make api change internal so nobody uses it
* coverage
* fix test
* fix more tests
* coverage
* more tests assuming internal calls
* fix more
* adjust
* adjust
* fix axis tests
* fix broadlink -- it does not call async_forward_entry_setup
* missed some
* remove useless patch
* rename, detect it both ways
* clear
* debug
* try to fix
* handle phase finishing out while paused
* where its set does not need to know its late as that is an implemenation detail of setup
* where its set does not need to know its late as that is an implemenation detail of setup
* tweak
* simplify
* reduce complexity
* revert order change as it makes review harder
* revert naming changes as it makes review harder
* improve comment
* improve debug
* late dispatch test
* test the other way as well
* Update setup.py
* Update setup.py
* Update setup.py
* simplify
* reduce
2024-03-23 15:26:38 -04:00
Marc Mueller and GitHub
7d6251ca08
Add empty line after module docstring [tests q-s] ( #112711 )
2024-03-08 14:47:22 +01:00
J. Nick Koston and GitHub
c3d9192384
Migrate smartthings to use async_update_entry to alter config entries ( #110403 )
2024-02-12 21:24:45 +01:00
Ville Skyttä and GitHub
b51c0f6ddc
Remove unnnecessary pylint configs from components [s-z]* ( #98925 )
2023-08-24 01:25:32 +02:00
epenet and GitHub
24428d98a1
Fix lingering timer in smartthings tests ( #91697 )
2023-04-21 18:58:07 +02:00
epenet and GitHub
3a9adacdde
Add type hints to integration tests (part 20) ( #88179 )
2023-02-15 15:23:34 +01:00
Franck Nijhof and GitHub
ca1a12898c
Enable Ruff D212 ( #87347 )
2023-02-03 23:08:48 +01:00
epenet and GitHub
30bf0634fe
Add per-file-ignore to pylint ( #86289 )
2023-01-22 17:26:24 +01:00
Ville Skyttä and GitHub
50e0c58310
Use http.HTTPStatus in components/s* ( #58291 )
2021-10-23 20:49:04 +02:00
a4d9019ffc
Refactor persistent notification to no longer route all data via a service ( #57157 )
...
* Convert persistent notification tests to async
* Create/dismiss persistent notifications in exposed functions, not service calls
* Fix notify persistent_notification
* Remove setting up persistent_notification
* Drop more setups
* Empty methods
* Undeprecate sync methods because too big task
* Fix setup clearing notifications
* Fix a bunch of tests
* Fix more tests
* Uno mas
* Test persistent notification events
* Clean up stale comment
Co-authored-by: Martin Hjelmare <[email protected] >
2021-10-07 12:58:00 +02:00
Ville Skyttä and GitHub
2730a27fd0
Use HTTPStatus instead of HTTP_* constants in various test mocks ( #56543 )
2021-10-01 15:52:45 -07:00
Ville Skyttä and GitHub
153d6e891e
Use config_entries.SOURCE_* constants ( #49631 )
2021-04-25 11:27:40 +02:00
Quentame and GitHub
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
Franck Nijhof and GitHub
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Franck Nijhof and GitHub
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Franck Nijhof and GitHub
e56dd8ed50
Detect use of deprecated base_url ( #35353 )
...
* Detect use of deprecated base_url
* Update get_url helper
* Update core migration
* Migrate all tests
2020-05-08 17:52:32 +02:00
Paulus Schoutsen and GitHub
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
springstan and GitHub
bc26be3c11
Add and use HTTP_FORBIDDEN constant ( #33839 )
2020-04-09 17:41:17 +02:00
springstan and GitHub
fb8f8133a0
Use HTTP_INTERNAL_SERVER_ERROR constant ( #33832 )
2020-04-08 23:20:03 +02:00
Ziv and GitHub
bee742994e
Fix uncaught exceptions for discovery, unify_direct, spotify,… ( #33735 )
...
* used coroutinemock to avoid exception
* added spec to mock to remove exception
* added the current_user return value so it doesnt throw exception
* fix the mocks so properties do not need .return_value
* fixed missing mock values that were causing exceptions
* moved patch to asynctest so no need to define m_init
* fixed black error
2020-04-07 09:34:13 -07:00
Paulus Schoutsen and GitHub
d4615fd432
Freeze config entry data ( #32615 )
...
* Freeze config entry data
* Fix mutating entry.data
* Fix config entry options tests
2020-03-09 14:07:50 -07:00
Bas Nijholt and Franck Nijhof
23b92b2a56
Sort imports according to PEP8 for components starting with "S" ( #29777 )
2019-12-09 14:38:01 +01:00
Paulus Schoutsen and Andrew Sayre
d98114d2ab
Guard cloud check ( #27901 )
...
* Guard cloud check
* Fix pos args
2019-10-18 20:08:53 -05:00
Franck Nijhof and Pascal Vizeli
a8a485abf7
Bumps aiohttp to 3.6.0 ( #26728 )
2019-09-19 20:34:41 +02:00
Andrew Sayre and Aaron Bach
3c07a9b4c7
Cleanup strings ( #26243 )
2019-08-27 17:08:09 -06:00
Paulus Schoutsen and Pascal Vizeli
6f357cb23e
First pass fixing tests that raise exceptions caught by asyncio.gather ( #25860 )
...
* First pass fixing tests that raise exceptions caught by asyncio.gather
* Fix demo test
* lint
2019-08-12 16:42:12 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Andrew Sayre and Paulus Schoutsen
20301ae888
Use MockConfigEntry ( #25190 )
2019-07-16 14:51:30 -07:00
Andrew Sayre and GitHub
a31e49c857
Improve SmartThings test mocking ( #25028 )
...
* Migrate to asynctest
* Simplify mock access
* Use mocks
2019-07-08 22:39:55 -04:00
Andrew Sayre and Paulus Schoutsen
6526c68e2d
Fix validate webhook requirements ( #22248 )
2019-03-21 09:13:20 -07:00
Andrew Sayre and Charles Garwood
c401f35a43
Add cloudhook support to SmartThings component ( #21905 )
...
* Add support for Nabu Casa cloudhooks
* Added tests to cover cloudhook creation and removal
* Remove cloud dependency
2019-03-11 08:33:25 -04:00
Andrew Sayre and Paulus Schoutsen
c5734eecc7
Update dependencies to receive data on webhook callbacks ( #21838 )
2019-03-08 21:20:07 -08:00
Andrew Sayre and GitHub
3e0459cef9
SmartThings remove SmartApp/Automation on integration removal ( #21594 )
...
* Add clean-up logic upon entry removal
* Removed unecessary app removal from migration
* Change log level and clarified code
2019-03-03 13:47:25 -06:00
Andrew Sayre and Paulus Schoutsen
3b9db88065
Add SmartThings Scene platform ( #21405 )
...
* Add SmartThings Scene platform
* Fixed failing tests after rebase
* Update cover tests.
2019-02-26 13:12:24 -08:00
Andrew Sayre and Martin Hjelmare
8b38b82e73
Enhance SmartThings component subscription ( #21124 )
...
* Move to config v2 to store SmartApp oauth keys
* Add migration functionality.
* Regenerate refresh token on periodic basis
* Fix regenerate and misc. optimizations
* Review feedback
* Subscription sync logic now performs a difference operation
* Removed config entry reloading.
2019-02-22 20:35:12 +01:00