1
0
mirror of https://github.com/home-assistant/core.git synced 2025-08-11 14:29:58 +00:00

24 Commits

Author SHA1 Message Date
epenet
d0a188b86d Standardize homeassistant imports in component tests (m-z) () 2025-01-29 08:57:57 +01:00
epenet
5fb9537d6d Use pytest.mark.usefixtures for start_ha in template tests () 2024-09-26 14:00:52 +02:00
epenet
98d24dd276 Improve typing for calls fixture in tests (m-z) ()
* Improve typing for `calls` fixture in tests (m-z)

* More

* More
2024-05-29 09:30:41 +02:00
Sid
9bf87329da Enable Ruff FLY002 rule ()
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2024-04-12 09:04:16 +02:00
Sid
d5f883fbf0 Unignore Ruff PLR in tests ()
* Unignore Ruff PLR in tests

* Address review comments

* review comments

* fix import

* Update test_api.py

* Update test_api.py

* Update test_api.py
2024-04-01 11:11:59 +02:00
Marc Mueller
87165c0d6e Add empty line after module docstring [tests t-z] () 2024-03-08 14:44:56 +01:00
Jan-Philipp Benecke
4d708f1931 Migrate template tests to use freezegun () 2023-12-09 09:47:28 +01:00
Erik Montnemery
17ac1a6d32 Set automations which fail validation unavailable () 2023-06-27 18:23:33 +02:00
epenet
88cfbf6a34 Add type hints to integration tests (part 22) () 2023-02-16 14:08:03 +01:00
Franck Nijhof
d3ed8de232 Update Ruff to v0.0.247 ()
* Update Ruff to v0.0.247

* Fix new found violations
2023-02-15 16:46:03 -05:00
Franck Nijhof
ed79265843 Enable Ruff PT006 ()
* Enable Ruff PT006

* Adjust existing cases

* Fix tests

* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
Franck Nijhof
e50a531cd9 Code styling tweaks to the tests - Part 2 ()
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2023-01-26 01:23:53 +01:00
jan iversen
ac1251c52b Update template/test_trigger.py to use pytest () 2021-09-10 09:55:51 -07:00
Erik Montnemery
b26779a27a Add id to automation triggers () 2021-03-31 14:56:04 +02:00
Franck Nijhof
5a2b5fe7c5 Yoda assertion style removed is () 2021-03-20 13:55:10 +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
Erik Montnemery
dd9e926689 Pass variables to initial evaluation of template trigger ()
* Pass variables to initial evaluation of template trigger

* Add test

* Clarify test
2021-03-01 23:34:26 +01:00
Anders Melchiorsen
f8f86fbe48 Do not trigger when template is true at startup () 2021-02-14 19:54:11 +01:00
Franck Nijhof
65cf2fcb6f Drop asynctest () 2021-01-01 22:31:56 +01:00
J. Nick Koston
035f9412ba Fix template triggers from time events ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-12-29 23:16:39 +01:00
Paulus Schoutsen
b3be708db6 Add default config if not there ()
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-11-25 15:10:04 +01:00
Franck Nijhof
8837ed35cd Use direct service calls in tests instead of automation common ()
* Use direct service calls in tests instead of automation common

* Remove automation common test helpers
2020-09-26 19:28:26 +02:00
J. Nick Koston
20398cc0a6 Subscribe to state change events only if the template has entities () 2020-08-26 00:20:04 +02:00
Phil Bruckner
ca9dd0c833 Reorganize trigger code () 2020-08-17 11:54:56 -05:00