Commit Graph
37 Commits
Author SHA1 Message Date
Erik MontnemeryandGitHub f8a65a7c6f Rename trigger behavior options (#172348) 2026-05-27 16:01:11 +02:00
5b2816e56c Fix line length violations in tests/components s (#170990)
Co-authored-by: Simone Chemelli <[email protected]>
2026-05-17 17:14:26 -04:00
epenetandGitHub 88525955ce Remove import annotations from tests (#169527) 2026-04-30 09:30:46 +02:00
Erik MontnemeryandGitHub aad93fd577 Add tests asserting condition features (#168881) 2026-04-24 18:41:39 +02:00
Erik MontnemeryandGitHub 1e6c832c9a Add tests asserting trigger features (#168407) 2026-04-17 08:37:47 +02:00
Erik MontnemeryandGitHub f84398eb9c Speed up trigger tests (#166522) 2026-03-26 00:51:14 +01:00
04d45c8ada Add schedule conditions (#165913)
Co-authored-by: Martin Hjelmare <[email protected]>
2026-03-18 18:55:47 +01:00
Erik MontnemeryandGitHub ba30563772 Deduplicate tests testing triggers in mode last (#165789) 2026-03-17 14:28:10 +01:00
6c9fc7c7a1 Deduplicate tests testing triggers in mode first (#165779)
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
2026-03-17 12:44:21 +01:00
Erik MontnemeryandGitHub fdfe87de4c Move condition/trigger test helpers to test.components.common (#165777) 2026-03-17 11:08:38 +01:00
Erik MontnemeryandGitHub 67356de21b Deduplicate tests testing triggers in mode any (#165772) 2026-03-17 10:27:12 +01:00
Erik MontnemeryandGitHub 4769a769e0 Use return value from target_entities directly in all trigger tests (#165761) 2026-03-17 09:55:08 +01:00
9bbd9d8bcd Deduplicate trigger tests checking labs flag (#165760)
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
2026-03-17 08:19:10 +01:00
MichaelandGitHub 16fb2dfa91 Add domain driven triggers to schedule helper (#159325) 2026-03-05 21:26:05 +01:00
karwostsandGitHub 1f25641e3b Fix schedule entity can't delete icon (#150995) 2025-08-25 10:56:33 +02:00
karwostsandGitHub 57c024449c Fix broken invalid_config tests (#148965) 2025-07-18 09:02:44 +02:00
Richard KroegelandGitHub 71e28a4af3 Add service to retrieve schedule configuration (#121904) 2025-02-03 14:41:25 +00:00
d7cf05e693 Allow attaching additional data to schedule helper blocks (#116585)
* Add a new optional "data" key when defining time ranges for the schedule component that exposes the provided data in the state attributes of the schedule entity when that time range is active

* Exclude all schedule entry custom data attributes from the recorder (with tests)

* Fix setting schedule attributes to exclude from recorder, update test to verify the attributes exist but are not recorded

* Fix test to ensure schedule data attributes are not recorded

* Use vol.Any in place of vol.Or

Co-authored-by: Erik Montnemery <[email protected]>

* Remove schedule block custom data shorthand
as requested in https://github.com/home-assistant/core/pull/116585#pullrequestreview-2280260436

* Update homeassistant/components/schedule/__init__.py

---------

Co-authored-by: Erik Montnemery <[email protected]>
2024-09-11 20:11:06 +02:00
Marc MuellerandGitHub a6068dcdf2 Update import locations in tests (#122216) 2024-07-20 11:16:04 +02:00
epenetandGitHub c7e065c413 Move enable_custom_integrations fixture to decorator (#118844) 2024-06-05 09:20:08 +02:00
epenetandGitHub 1317837986 Improve type hints in tests (q-z) (#118381) 2024-05-30 08:48:02 +02:00
epenetandGitHub e58d060f82 Use registry fixtures in tests (s) (#118295) 2024-05-28 15:41:03 +02:00
00ec7f11f0 Enable Ruff rule PT007 (#113764)
Co-authored-by: Franck Nijhof <[email protected]>
2024-03-19 09:01:07 +01:00
Marc MuellerandGitHub 7d6251ca08 Add empty line after module docstring [tests q-s] (#112711) 2024-03-08 14:47:22 +01:00
J. Nick KostonandGitHub d0d4ab6056 Require a list of entity ids when fetching history (#90992) 2023-04-08 16:14:44 -10:00
epenetandGitHub 71dc98a39c Improve hass_ws_client type hint in tests (#89703) 2023-03-14 16:31:40 +01:00
J. Nick KostonandGitHub 1c57339ec3 Refactor recorder tests to use recorder history API (#89565) 2023-03-11 21:51:16 -05:00
Erik MontnemeryandGitHub 9989a4787b Fix recorder platform tests (#88330) 2023-02-17 08:22:15 -06:00
epenetandGitHub 80ee196fd8 Add type hints to integration tests (part 19) (#88178) 2023-02-15 18:07:40 +01:00
Franck NijhofandGitHub ed79265843 Enable Ruff PT006 (#88165)
* Enable Ruff PT006

* Adjust existing cases

* Fix tests

* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
Erik MontnemeryandGitHub 31a787558f Ensure recorder test fixture is setup before hass fixture (#80528)
* Ensure recorder test fixture is setup before hass fixture

* Adjust more tests
2022-10-19 07:58:47 +02:00
Erik MontnemeryandGitHub 8bab2a9bea Tweak schedule test (#77696) 2022-09-02 08:39:27 +02:00
32e4a2515e Time range should be treated as open ended (#77660)
* Time range should be treated as open end

* Refactored the logic of calculating the state

* Improve tests

* Improve tests

Co-authored-by: Erik <[email protected]>
2022-09-02 08:14:06 +02:00
Erik MontnemeryandGitHub d0375959fd Add additional test to schedule (#77601) 2022-08-31 15:19:50 +02:00
Erik MontnemeryandGitHub 7c5a5f86ee Allow setting to-time in schedule to 24:00 (#77558) 2022-08-30 15:54:31 -04:00
Erik MontnemeryandGitHub cac4015882 Fix schedule during single weekday (#77543) 2022-08-30 08:14:46 -04:00
f0827a20c3 Add schedule helper (#76566)
Co-authored-by: Paulus Schoutsen <[email protected]>
2022-08-11 16:14:01 +02:00