J. Nick Koston
723dcbafca
Complete fan speed transition from #59781 ( #67743 )
2022-03-09 10:38:12 +01:00
epenet
2c0033254b
Import cloud ( #64116 )
...
* Add type hints to cloud
* Import cloud
* Adjust smartthings tests
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-14 16:35:35 +01:00
Franck Nijhof
3f7275a9c7
Give scenes last activated state ( #62673 )
2022-01-07 19:02:32 +01:00
Dave T
79ef4dea98
Use new enums in smartthings tests ( #62708 )
...
* Use new enums in smartthings tests
* Convert == to is
2021-12-23 23:14:10 +01:00
Robert Hillis
85aeee7cc7
Add smartthings configuration_url ( #58676 )
2021-11-14 20:37:40 +01:00
Allen Porter
d49c5d511b
Add entity_category to SmartThings sensors ( #58375 )
2021-10-26 14:55:03 +02:00
Ville Skyttä
50e0c58310
Use http.HTTPStatus in components/s* ( #58291 )
2021-10-23 20:49:04 +02:00
Paulus Schoutsen
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 <marhje52@gmail.com>
2021-10-07 12:58:00 +02:00
Ville Skyttä
2730a27fd0
Use HTTPStatus instead of HTTP_* constants in various test mocks ( #56543 )
2021-10-01 15:52:45 -07:00
Chris
14aa19b814
Fix unique_id conflict in smarttthings ( #55235 )
2021-08-26 13:43:26 -07:00
Chris
cfc5111561
Handle powerConsumption reports with null value ( #53888 )
2021-08-02 20:50:57 -07:00
Chris
8ac1f5d28a
Add energy consumption sensors to smartthings devices ( #53759 )
2021-08-01 20:35:03 -07:00
Michael
2b2cddb5f0
Extract smartthings switch energy attributes into sensors ( #53719 )
2021-07-29 21:50:02 -07:00
Erik Montnemery
1d9d9021de
Do not attempt to unload non loaded config entries ( #51356 )
2021-06-02 10:00:24 +02:00
Paulus Schoutsen
ee2c950716
Merge system options into pref properties ( #51347 )
...
* Make system options future proof
* Update tests
* Add types
2021-06-01 22:34:31 +02:00
Franck Nijhof
c68b259bd3
Cleanup of unused connection_class logic ( #49865 )
...
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-04-29 23:12:58 +02:00
Ville Skyttä
153d6e891e
Use config_entries.SOURCE_* constants ( #49631 )
2021-04-25 11:27:40 +02:00
Erik Montnemery
ba2978c693
Update tests p-s to use async_get() instead of async_get_registry() ( #47654 )
2021-03-09 14:28:32 +01: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
Ville Skyttä
dc880118a4
Lint suppression cleanups ( #47248 )
...
* Unused pylint suppression cleanups
* Remove outdated pylint bug references
* Add flake8-noqa config and note to run it every now and then
* Add codes to noqa's
* Unused noqa cleanups
2021-03-02 09:02:04 +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
Ville Skyttä
2fb3be50ab
Make DeviceRegistry.async_get_device connections arg optional ( #44897 )
...
* Make async_get_device connections Optional, default None
* Remove unnecessary async_get_device connections arg usages
Some of these were using an incorrect collection type, which didn't
cause issues mostly just due to luck.
2021-01-07 13:49:45 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Paulus Schoutsen
5dac3883b0
Stub light profiles ( #42232 )
2020-10-23 16:28:21 +02:00
springstan
d2b1918e9c
Drop UNIT_ prefix for percentage constant ( #39383 )
2020-09-05 21:09:14 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Andrew Sayre
bb69aba051
Remove unused SmartThings capability subscriptions ( #38128 )
2020-07-31 17:40:23 +02:00
Andrew Sayre
ae5c50c1b6
Bump pysmartthings to v0.7.2 ( #38086 )
2020-07-22 16:01:57 -07:00
Quentame
1855c91988
Use CONF_CLIENT_ID & CONF_CLIENT_SECRET from homeassistant.const ( #36233 )
...
* Use CONF_CLIENT_ID & CONF_CLIENT_SECRET from homeassistant.const
* Fix pylint
* Use in tests
* Search for "client_id"
* Fix tests
* Fix test
* Fix test
2020-05-30 17:27:20 +02:00
Franck Nijhof
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
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Andrew Sayre
6ae7f31947
SmartThings continue correct config flow after external auth ( #34862 )
2020-04-29 14:05:20 -07:00
Andrew Sayre
075030f15a
Update SmartThings config flow to be entirely UI based ( #34163 )
...
* bump pysmartthings 0.7.1
* Update config flow to use UI
* Code review comments and fix for resetting oauth client
* Replace html with markdown
2020-04-14 15:26:53 -07:00
springstan
bc26be3c11
Add and use HTTP_FORBIDDEN constant ( #33839 )
2020-04-09 17:41:17 +02:00
springstan
9a40d5b7ed
Use HTTP_NOT_FOUND constant ( #33835 )
2020-04-09 00:57:47 +02:00
springstan
fb8f8133a0
Use HTTP_INTERNAL_SERVER_ERROR constant ( #33832 )
2020-04-08 23:20:03 +02:00
springstan
eae21be5b9
Improve string formatting v6 ( #33698 )
2020-04-07 23:14:28 +02:00
Ziv
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
springstan
67c3a4c970
Improve string formatting v7 ( #33705 )
2020-04-05 17:34:24 -05:00
springstan
dde93304d3
Improve string formatting v2 ( #33645 )
...
* Improve string formatting v2
* Improve string formatting v3
* Address review comments
2020-04-04 23:09:34 +02:00
Paulus Schoutsen
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
springstan
f1a0ca7cd3
Add and use percentage constant ( #32094 )
...
* Add and use percentage constant
* Fix pylint error and broken test
2020-02-28 11:46:48 -08:00
Franck Nijhof
fb35d382e1
Remove all empty *_setup_platform() from integrations ( #31025 )
...
* Remove all empty *_setup_platform() from integrations
* Fix tests for smartthings
* Fix tests for heos
2020-01-21 12:38:38 +01:00
Ville Skyttä
5216477353
Be consistent with Home Assistant and Hass.io spelling ( #30500 )
...
* Be consistent with Home Assistant spelling
* Be consistent with Hass.io spelling
2020-01-05 14:09:17 +02:00
Ville Skyttä
130571c478
Remove no longer needed auth.util, use secrets instead ( #29861 )
2019-12-12 16:46:33 +01:00
Bas Nijholt
23b92b2a56
Sort imports according to PEP8 for components starting with "S" ( #29777 )
2019-12-09 14:38:01 +01:00
Paulus Schoutsen
e99184bf68
Install requirements of after_dependencies when loading integrations ( #29491 )
...
* Install requirements of after_dependencies when loading integrations
* Fix smartthings test
2019-12-05 09:28:56 +01:00
Paulus Schoutsen
02d9ed5e36
Do not select all entities when omitting entity ID in service call ( #29178 )
...
* Do not select all entities when omitting entity ID
* Address comments Matthew
* Require either area_id or entity_id
* Fix tests
* Fix test
2019-12-02 16:23:12 -08:00
Paulus Schoutsen
48660585f1
Add climate device triggers ( #28544 )
...
* Add climate device triggers
* Test capabilities
2019-11-07 16:28:45 +01:00
Paulus Schoutsen
d98114d2ab
Guard cloud check ( #27901 )
...
* Guard cloud check
* Fix pos args
2019-10-18 20:08:53 -05:00