Erik Montnemery
02a83740cc
Use real devices in light device action tests ( #102722 )
2023-10-24 21:38:24 +00:00
Franck Nijhof
868a5f377f
Ruff: isort don't split imports based on trailing comma ( #98162 )
2023-08-10 14:27:03 +02:00
Erik Montnemery
433d640071
Use entity registry id in light device actions ( #95271 )
2023-06-26 22:27:19 +02:00
Erik Montnemery
a338e7e242
Use entity registry id in toggle_entity device automations ( #94995 )
...
* Use entity registry id in toggle_entity device automations
* Update tests
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-06-26 09:59:01 +02:00
Erik Montnemery
fd822bce56
Replace assert_lists_same with pytest_unordered in integrations h-m ( #94901 )
2023-06-20 20:16:25 +02:00
Jan Bouwhuis
ec98e22330
Add type hints for stub_blueprint_populate fixture ( #93568 )
...
Add typehints for stub_blueprint_populate fixture
2023-05-26 08:13:13 +02:00
Erik Montnemery
3cca338c6e
Improve blueprint test fixtures ( #93519 )
2023-05-25 13:45:19 +02:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
ea11a30a35
Add type hints to integration tests (part 13) ( #87998 )
2023-02-13 14:38:37 +01:00
Erik Montnemery
cc564026fa
Move EntityCategory to homeassistant.const ( #87792 )
...
* Move EntityCategory to homeassistant.const
* Fix more imports
2023-02-09 20:15:37 +01:00
Franck Nijhof
51a9f65a01
Clean up unnecessary registry mocks from Core tests ( #87726 )
2023-02-08 13:28:44 -06:00
Erik Montnemery
64381acbaf
Mark device actions from hidden or auxiliary entities as secondary ( #70278 )
2022-04-20 10:48:46 -07:00
Franck Nijhof
27bc5e1d74
Add ColorMode enum to light platform ( #69223 )
2022-04-11 18:18:29 +02:00
Franck Nijhof
ea148a1b8e
Add EntityFeature enum to Light ( #69103 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-04-02 20:57:01 -07:00
Ville Skyttä
9b437ef146
Remaining DeviceAutomationType bits ( #62508 )
...
* Use DeviceAutomationType in missed tests/components/*
* Tighten device automation type hints
2021-12-21 20:05:48 +02:00
Ville Skyttä
c5e6489475
Use DeviceAutomationType in tests/components/[h-l]* ( #62441 )
2021-12-20 22:18:53 +01:00
Erik Montnemery
85786fd987
Make some device action tests more explicit ( #59469 )
...
* Make some device action tests more explicit
* Adjust tests
2021-11-11 12:32:51 +01:00
Joakim Sørensen
2f10f59717
Block custom integrations with missing or invalid version ( #49916 )
2021-05-17 15:48:41 +02:00
Erik Montnemery
960ed13f94
Update light device actions to check supported_color_modes ( #50611 )
2021-05-14 22:58:37 +02:00
Erik Montnemery
7e4be921a8
Add helper to get an entity's supported features ( #48825 )
...
* Add helper to check entity's supported features
* Move get_supported_features to helpers/entity.py, add tests
* Fix error handling and improve tests
2021-04-10 08:19:16 +02: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
b3be708db6
Add default config if not there ( #43321 )
...
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-11-25 15:10:04 +01:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Paulus Schoutsen
276f3afb00
Do async_setup_platform in background ( #36244 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-05-31 22:18:30 -07:00
Robert Chmielowiec
7bd6f5413d
Add flash light device actions ( #33689 )
...
* Add flash light device actions
* Single action with extra fields
* Change extra_fields to dictionary
2020-04-13 10:30:20 -07:00
Franck Nijhof
743166d284
Fix brightness_pct in light device turn_on action ( #32787 )
2020-03-13 21:58:32 -07:00
Erik Montnemery
c4ac3155e4
Add brightness to light device turn_on action ( #32219 )
...
* Add support for setting brightness
* Remove default brightness
2020-02-29 13:33:20 +01:00
Paulus Schoutsen
5092971452
Add brightness light device actions ( #31567 )
2020-02-09 19:47:59 -08:00
Christian Clauss
1d537ad416
Fix typo: serivce --> service ( #31217 )
2020-01-27 19:56:26 +01:00
Bas Nijholt
aeff27680b
use isort to sort imports according to PEP8 for light ( #29648 )
2019-12-08 22:46:23 +05:30
Paulus Schoutsen
6fdff9ffab
Reorg device automation ( #26880 )
...
* async_trigger -> async_attach_trigger
* Reorg device automations
* Update docstrings
* Fix types
* Fix extending schemas
2019-09-24 14:57:05 -07:00