Erik Montnemery
c805ea7b4f
Include deprecated constants in wildcard imports ( #107114 )
2024-01-05 11:46:45 +01:00
J. Nick Koston
2b972f6dba
Add deprecation warning for lock supported features when using magic numbers ( #106620 )
2023-12-28 15:03:14 -10:00
G Johansson
8cd0644035
Add translation to ServiceValidationError in Lock ( #105746 )
2023-12-27 12:50:27 +01:00
Robert Resch
491a50a2f1
Deprecate deprecated lock constants ( #106113 )
2023-12-20 18:07:17 +01:00
Jan Bouwhuis
280637822b
Use mocked entity platform for lock service tests ( #105020 )
...
* Use mocked entity platform for lock service tests
* Cleanup old mock class
* Follow up on code review
* Improve mock entity platform
* Use entity_id of passed entity instead of constant
2023-12-12 15:49:01 +01:00
Jan Bouwhuis
7d21ed41a2
Refactor lock default code handling ( #104807 )
2023-12-04 14:59:51 +01:00
Øyvind Matheson Wergeland
5527cbd78a
Fix default lock code for lock services ( #103463 )
...
* verisure: Support default code from lock entity
* Actually use default lock code
* Typing
* Only pass default code if set
* Avoid passing code as empty string
* Simplified code
2023-11-20 22:38:16 +01:00
Jan-Philipp Benecke
0eafc8f2cd
Update k-l* tests to use entity & device registry fixtures ( #103929 )
2023-11-13 20:02:33 +01:00
Erik Montnemery
b38692f3a7
Use real devices in lock device condition tests ( #102757 )
2023-10-25 09:42:00 +02:00
Erik Montnemery
f56343f447
Use real devices in lock device action tests ( #102723 )
2023-10-24 23:43:50 +02:00
Erik Montnemery
f9fa1edabf
Use real devices in lock device trigger tests ( #102690 )
2023-10-24 22:30:07 +02:00
Ville Skyttä
e7b6037419
Remove unnnecessary pylint configs from components [e-l]* ( #99004 )
2023-08-25 09:46:34 +02:00
Erik Montnemery
320003bf15
Use entity registry id in lock device actions ( #95272 )
2023-06-26 23:09:26 +02:00
Erik Montnemery
2cfa889750
Use entity registry id in lock device conditions ( #95257 )
2023-06-26 20:30:05 +02:00
Erik Montnemery
e404441e8c
Teach lock device trigger about entity registry ids ( #94975 )
2023-06-21 14:51:09 +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
G Johansson
0bda869553
Lock entity options ( #88139 )
2023-05-08 22:06:11 +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
epenet
f75ac17554
Add type hints to integration tests (j-m) ( #87704 )
2023-02-08 19:06:59 +01:00
epenet
aa00114c2f
Add return type to async tests without arguments ( #87612 )
2023-02-07 10:26:56 +01:00
Jan Bouwhuis
b03677db1c
Add validation for lock component ( #85842 )
...
* Add validation for lock integration
* Add LockEntityFeature.OPEN for lock group
* Correct tests google_assistant for extra entity
* Validate feature when registering service
* Update tests
* Add LockFeature.OPEN with group
2023-01-23 13:08:00 +01:00
Erik Montnemery
5e50a8abd5
Mark device triggers from hidden or auxiliary entities as secondary ( #70335 )
...
* Mark device triggers from hidden or auxiliary entities as secondary
* Update tests
2022-04-21 08:01:32 +02:00
Erik Montnemery
150f173eed
Mark device conditions from hidden or auxiliary entities as secondary ( #70333 )
2022-04-20 21:41:59 +02: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
721db6d962
Add EntityFeature enum to Lock ( #69118 )
2022-04-02 20:57:32 -07:00
Franck Nijhof
8aff8d89d2
Clean up async_reproduce_state helper usage ( #68617 )
2022-03-24 14:40:54 +01: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
Franck Nijhof
cf371ea8dd
Remove deprecated base entity classes ( #61006 )
...
* Remove deprecated base entity classes
* Clean up tests
2021-12-05 13:53:52 +01:00
J. Nick Koston
9b705ad6df
Update lock entity to support locking, unlocking, jammed ( #51455 )
2021-07-20 18:12:56 +02:00
Erik Montnemery
6ab37881c9
Improve editing of device actions referencing non-added lock ( #51750 )
2021-06-12 21:31:30 +02:00
Joakim Sørensen
2f10f59717
Block custom integrations with missing or invalid version ( #49916 )
2021-05-17 15:48:41 +02:00
Erik Montnemery
9d8521169b
Add 'for' to lock device triggers ( #48504 )
...
* Add 'for' to lock device triggers
* Update tests/components/lock/test_device_trigger.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update test_device_trigger.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-30 16:40:57 +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
Aaron Bach
85e6bc581f
Add significant change support to lock ( #45726 )
2021-01-30 09:03:54 +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
Pascal Vizeli
c291d4aa7d
Intelligent timeout handler for setup/bootstrap ( #38329 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-08-05 14:58:19 +02:00
Erik Montnemery
b30d117e7d
Rename LockDevice to LockEntity ( #34594 )
2020-04-25 18:02:41 +02:00
Franck Nijhof
bc5a2da7b7
Add transition support to scenes, cleanup blocking parameter ( #34434 )
2020-04-20 18:07:50 -07:00
Franck Nijhof
30c6ace0f3
Rewrite MQTT & demo Lock tests ( #33838 )
...
* Refactor tests to remove tests.lock.common
* Remove unused is_locked hass binding
* Import constants via entity component
* Import constants via entity component
* Fix light vs lock in naming
2020-04-10 00:40:51 +02:00
Christian Clauss
1d537ad416
Fix typo: serivce --> service ( #31217 )
2020-01-27 19:56:26 +01:00
Bas Nijholt
3b0f29fe95
sort imports according to PEP8 for lock ( #29663 )
2019-12-09 12:19:11 +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
78657bfbaf
Add lock device triggers ( #28547 )
...
* Add lock device triggers
* Lint
2019-11-07 12:26:59 +01:00
Erik Montnemery
6d083969c2
Add device action support to the lock integration ( #27499 )
...
* Add device action support to the lock integration
* Check that the enitity supports open service
2019-10-17 17:20:10 -07:00