epenet
5608301178
Add missing return type in test __init__ methods ( #123932 )
...
* Add missing return type in test __init__ methods
* Adjust
2024-08-14 16:48:52 +02:00
epenet
b0d1d7bdb2
Improve type hints in lcn tests ( #123648 )
2024-08-12 21:53:32 +02:00
epenet
ce54ca9c8e
Use service_calls fixture in lcn tests ( #120931 )
2024-07-01 17:27:32 +02:00
epenet
fb1b0058ee
Fix consider-using-tuple pylint warnings in component tests ( #119464 )
...
* Fix consider-using-tuple pylint warnings in component tests
* Apply su
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
---------
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2024-06-12 15:50:27 +02:00
epenet
7e62061b9a
Improve typing for `calls` fixture in tests (a-l) ( #118349 )
...
* Improve typing for `calls` fixture in tests (a-l)
* More
* More
2024-05-29 09:06:48 +02:00
Sid
0d66d298ec
Enable Ruff RET504 ( #114528 )
...
* Enable Ruff RET504
* fix test
* Use noqa instead of cast
* fix sonos RET504
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-04-06 11:07:37 +02:00
epenet
0b01326f9f
Use is in ConfigEntryState enum comparison in tests (A-M) ( #114925 )
2024-04-05 17:16:55 +02:00
Joost Lekkerkerker
5d500cb74b
Use is in enum comparison in config flow tests K-O ( #114672 )
2024-04-02 11:21:42 -10:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Marc Mueller
32f3f46542
Add empty line after module docstring (2) [tests.components] ( #112737 )
2024-03-08 19:16:21 +01:00
Marc Mueller
1722e23df8
Add empty line after module docstring [tests l-p] ( #112710 )
2024-03-08 14:55:15 +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
7539cf25be
Don't require passing identifiers to DeviceRegistry.async_get_device ( #96479 )
...
* 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
Erik Montnemery
fd822bce56
Replace assert_lists_same with pytest_unordered in integrations h-m ( #94901 )
2023-06-20 20:16:25 +02:00
epenet
c51bde9a26
Fail CI on lingering tasks ( #88905 )
2023-03-07 11:35:48 +01: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
epenet
f75ac17554
Add type hints to integration tests (j-m) ( #87704 )
2023-02-08 19:06:59 +01:00
Michael
e35ab75c0b
Replace the usage of unit constants by enumerations in Tests [h-l] ( #85934 )
2023-01-15 14:52:55 +01:00
Marc Mueller
63d519c1a8
Spelling updates ( #82867 )
2022-11-28 16:51:43 +01:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74642 )
2022-07-07 19:57:36 +03:00
Andre Lengwenus
b7b8feda0f
Add tests for LCN sensor and binary_sensor platforms ( #67263 )
2022-06-28 21:59:19 -07:00
Andre Lengwenus
389f1f4eda
Add lcn_codelock event and corresponding device trigger ( #73022 )
2022-06-28 14:01:18 -07:00
Andre Lengwenus
ead6e7da1f
Purge entity and device registries when importing lcn from configuration.yaml ( #54266 )
...
* Identify LCN orphans in entity registry and device registry and remove them
* Fix typing issues
* Revert "Fix typing issues"
This reverts commit eccd067b3b5f23135e6c8a79d25f7f2cbc2d0ae9.
* Fix removal of devices which do not belong to given config_entry
* Use helper for getting entities for config_entry
* Rename variable
2022-05-22 18:59:44 +02:00
Franck Nijhof
69cc6ab5f1
Clean up accessing entity_registry.async_get_registry helper via hass ( #72005 )
2022-05-17 16:40:45 +02:00
epenet
67b411d2b2
Use light enums in lcn ( #70796 )
2022-04-26 15:30:34 +03: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
e8852e0f30
Migrate lcn light to color_mode ( #69419 )
2022-04-07 14:49:12 +02:00
Andre Lengwenus
684f01f466
Add tests for LCN cover platform ( #64832 )
2022-02-25 10:22:48 +01:00
Andre Lengwenus
d5ec2fe842
Add tests for LCN light platform ( #64741 )
2022-01-23 07:45:22 -10:00
Andre Lengwenus
19e3c08c56
Add tests for LCN switch platform ( #52590 )
2022-01-22 10:41:25 -10:00
Ville Skyttä
c5e6489475
Use DeviceAutomationType in tests/components/[h-l]* ( #62441 )
2021-12-20 22:18:53 +01:00
Andre Lengwenus
38cb477e7b
Cleanup tests for lcn events and device triggers ( #61719 )
...
* Return PchkConnectionManager instance from init_integration
* Removed ip and port from LCN host model identifer
* Fix syntax error
* Convert init_integration to a fixture
* Rename device model for host
* Instantiate MockPchkConnectionManager with arguments from tests
* Invert logic for testing devices
2021-12-19 10:38:33 +01:00
Andre Lengwenus
74d5cbd3a9
Add events and device triggers to LCN ( #58745 )
2021-12-10 19:02:17 -10:00
Paulus Schoutsen
31153ac155
Move fixtures part 1 ( #58902 )
2021-11-01 20:47:05 -07:00
Andre Lengwenus
b34eb53914
Register LCN devices in device registry ( #53143 )
2021-10-27 14:29:28 -07: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
Andre Lengwenus
f2fe6c26ab
Add tests for LCN integration setup ( #48070 )
2021-06-28 18:08:09 +02:00
Andre Lengwenus
50b7b1cc7a
Migrate LCN configuration to ConfigEntry (Part 1) ( #44090 )
2021-03-15 13:45:13 +01:00