Commit graph

111 commits

Author SHA1 Message Date
Jakub Čermák
41626ed500
Support for more features on smartthings AC ()
* ability to set swing mode on samsung AC

* support for windFree mode on samsung AC

* Apply suggestions from code review

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* suggestion from code reviews

* Apply suggestions from code review

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-11-22 20:00:28 +01:00
Ville Skyttä
b51c0f6ddc
Remove unnnecessary pylint configs from components [s-z]* () 2023-08-24 01:25:32 +02:00
Paulus Schoutsen
ced4af1e22
Ignore smartthings storage on fresh install ()
* Ignore smartthings storage on fresh install

* Also unload existing things when going for clean install

* Rename param

* Fix tests
2023-08-14 21:39:05 -05:00
Erik Montnemery
fcdfeb74c8
Adjust smartthings tests which create devices () 2023-08-10 18:26:20 +02:00
Andrew Sayre
4ae69787a2
Fix SmartThings Cover Set Position (for window shades) ()
* Update smartthings dependencies

* Update cover to support window_shade_level
2023-07-18 14:13:31 +02:00
Erik Montnemery
7539cf25be
Don't require passing identifiers to DeviceRegistry.async_get_device ()
* Require keyword arguments to DeviceRegistry.async_get_device

* Update tests

* Update tests

* Don't enforce keyword arguments
2023-07-13 13:39:25 -04:00
Guillaume Duveau
23d5fb9622
Add more device info for SmartThings devices ()
* Add more device info for SmartThings devices

* Fix binary_sensor test

* Fix binary sensor test, try 2

* Fix and add SmartsThings new device info tests
2023-07-06 14:26:46 -04:00
epenet
24428d98a1
Fix lingering timer in smartthings tests () 2023-04-21 18:58:07 +02:00
epenet
3a9adacdde
Add type hints to integration tests (part 20) () 2023-02-15 15:23:34 +01:00
Franck Nijhof
9030ca05b1
Enable Ruff SIM118 () 2023-02-15 12:39:12 +01:00
Erik Montnemery
cc564026fa
Move EntityCategory to homeassistant.const ()
* Move EntityCategory to homeassistant.const

* Fix more imports
2023-02-09 20:15:37 +01:00
epenet
ba85fdcd61
Add type hints to integration tests (q-s) () 2023-02-08 08:12:54 -08:00
epenet
aa00114c2f
Add return type to async tests without arguments () 2023-02-07 10:26:56 +01:00
Franck Nijhof
ca1a12898c
Enable Ruff D212 () 2023-02-03 23:08:48 +01:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 () 2023-02-02 18:35:24 +01:00
epenet
30bf0634fe
Add per-file-ignore to pylint () 2023-01-22 17:26:24 +01:00
Franck Nijhof
79b52a2b41
Stricter pylint message control () 2023-01-20 13:47:55 +01:00
epenet
0d696b84b2
Cleanup root component imports in tests () 2022-09-21 06:57:41 -10:00
epenet
0ac581a0b1
Cleanup EntityFeature in tests () 2022-09-21 10:48:55 +02:00
Erik Montnemery
8936c91f50
Migrate smartthings light to color_mode () 2022-08-30 20:45:52 +02:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum () 2022-07-07 19:57:36 +03:00
mbo18
9d73f9a2c5
Move power and energy attributes to sensors for SmartThings Air conditioner ()
Move power and energy attribute to sensor for Air conditioner
2022-06-29 11:02:20 +02:00
epenet
6bb685eaba
Use LightEntityFeature enum in smartthings () 2022-04-29 22:42:45 +03:00
epenet
98d757b2b2
Use climate enums in smartthings () 2022-04-26 09:12:54 +02:00
J. Nick Koston
723dcbafca
Complete fan speed transition from () 2022-03-09 10:38:12 +01:00
epenet
2c0033254b
Import cloud ()
* 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 () 2022-01-07 19:02:32 +01:00
Dave T
79ef4dea98
Use new enums in smartthings tests ()
* Use new enums in smartthings tests

* Convert == to is
2021-12-23 23:14:10 +01:00
Robert Hillis
85aeee7cc7
Add smartthings configuration_url () 2021-11-14 20:37:40 +01:00
Allen Porter
d49c5d511b
Add entity_category to SmartThings sensors () 2021-10-26 14:55:03 +02:00
Ville Skyttä
50e0c58310
Use http.HTTPStatus in components/s* () 2021-10-23 20:49:04 +02:00
Paulus Schoutsen
a4d9019ffc
Refactor persistent notification to no longer route all data via a service ()
* 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 () 2021-10-01 15:52:45 -07:00
Chris
14aa19b814
Fix unique_id conflict in smarttthings () 2021-08-26 13:43:26 -07:00
Chris
cfc5111561
Handle powerConsumption reports with null value () 2021-08-02 20:50:57 -07:00
Chris
8ac1f5d28a
Add energy consumption sensors to smartthings devices () 2021-08-01 20:35:03 -07:00
Michael
2b2cddb5f0
Extract smartthings switch energy attributes into sensors () 2021-07-29 21:50:02 -07:00
Erik Montnemery
1d9d9021de
Do not attempt to unload non loaded config entries () 2021-06-02 10:00:24 +02:00
Paulus Schoutsen
ee2c950716
Merge system options into pref properties ()
* 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 ()
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 () 2021-04-25 11:27:40 +02:00
Erik Montnemery
ba2978c693
Update tests p-s to use async_get() instead of async_get_registry() () 2021-03-09 14:28:32 +01:00
Quentame
198ecb0945
Uniformize platform setup ()
* 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 ()
* 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 ()
* 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 ()
* 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 () 2021-01-01 22:31:56 +01:00
Paulus Schoutsen
5dac3883b0
Stub light profiles () 2020-10-23 16:28:21 +02:00
springstan
d2b1918e9c
Drop UNIT_ prefix for percentage constant () 2020-09-05 21:09:14 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 () 2020-08-27 13:56:20 +02:00