Commit Graph
123 Commits
Author SHA1 Message Date
05eeb6a1bc Enable duration support in all entity conditions (#169532)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: frenck <[email protected]>
2026-04-30 18:13:06 +02:00
Abílio CostaandGitHub 7cb1d5b8ab Allow targeting non-primary entities in conditions (#169291) 2026-04-29 12:25:26 +02:00
2a5b95ba4d Require hass in Template (#169292)
Co-authored-by: Copilot <[email protected]>
2026-04-29 09:26:32 +02:00
Erik MontnemeryandGitHub 96bd991bb8 Use modern condition API in condition helper tests (#169353) 2026-04-28 13:04:21 +02:00
Erik MontnemeryandGitHub 73dcc2f5a8 Add missing call to ConditionChecker.async_setup in async_from_config (#169055) 2026-04-28 10:30:11 +02:00
Erik MontnemeryandGitHub 4eb000d863 Add state tracking to EntityConditionBase (#169030) 2026-04-28 09:14:46 +02:00
Erik MontnemeryandGitHub 8d5f83e5f1 Add explicit test of conditions.async_conditions_from_config (#169042) 2026-04-28 08:24:43 +02:00
ec18e0c6d4 Add uptime device class to the sensor platform (#164266)
Co-authored-by: Copilot <[email protected]>
2026-04-24 16:18:17 +01:00
7d494f687e Adjust compound conditions (#169054)
Co-authored-by: Martin Hjelmare <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
2026-04-24 16:21:13 +02:00
Erik MontnemeryandGitHub db01b8e421 Migrate async_conditions_from_config to ConditionChecker (#169033) 2026-04-24 14:28:10 +02:00
Erik MontnemeryandGitHub ed7f2b1810 Migrate compound conditions to ConditionChecker (#169028) 2026-04-24 09:44:28 +02:00
cebe4aa685 Refactor condition API (#168815)
Co-authored-by: Artur Pragacz <[email protected]>
2026-04-24 07:46:34 +02:00
Erik MontnemeryandGitHub 7b8978c7e5 Add duration to state based entity conditions (#168348) 2026-04-16 16:12:59 +02:00
Erik MontnemeryandGitHub 4f8e7125d4 Add state based condition tests (#168349) 2026-04-16 11:22:14 +02:00
Marc MuellerandGitHub 99a186fad7 Fix lingering tasks in condition and trigger tests (#166967) 2026-04-01 16:10:14 +02:00
Artur PragaczandGitHub 24e0627b41 Register condition platform upon use (#166939) 2026-03-31 11:53:36 +02:00
Erik MontnemeryandGitHub a7de418213 Add light.is_brightness condition (#166601) 2026-03-26 17:58:44 +01:00
Erik MontnemeryandGitHub f0fc98cb66 Remove class NumericalDomainSpec (#166588) 2026-03-26 13:13:07 +01:00
Erik MontnemeryandGitHub c5955ada1a Use NumericThresholdSelector in numeric conditions (#166507) 2026-03-25 20:57:12 +01:00
Erik MontnemeryandGitHub 66311508ad Add power conditions (#166364) 2026-03-24 19:05:16 +01:00
Erik MontnemeryandGitHub 580ae1e81b Add numerical climate conditions (#166309) 2026-03-24 11:38:14 +01:00
03c672a4f3 Add battery conditions (#165208)
Co-authored-by: Erik Montnemery <[email protected]>
2026-03-23 22:18:48 +01:00
epenetandGitHub b6e7a55cd1 Rename DOMAIN_xxx aliases in tests (#163261) 2026-02-17 14:37:17 +01:00
Artur PragaczandGitHub 2d33a720f7 Modernise condition checker in helper (#159159) 2025-12-16 10:46:10 +01:00
Artur PragaczandGitHub 2dec3befcd Assign hass in Condition init (#158062) 2025-12-05 19:04:11 +00:00
Erik MontnemeryandGitHub ec66407ef1 Improve helpers.condition.async_subscribe_platform_events (#157710) 2025-12-02 11:32:14 +01:00
Erik MontnemeryandGitHub 21d914c8ca Disable experimental conditions according to labs flag setting (#157345) 2025-11-26 17:59:12 +01:00
Artur PragaczandGitHub f6b9a0eb29 Ensure backwards compatibility for new-style configs in old triggers and conditions (#156446) 2025-11-22 12:37:48 +01:00
Artur PragaczandGitHub cf1a745283 Move condition-specific fields into options (#152635) 2025-09-25 15:55:50 +02:00
Erik MontnemeryandGitHub 0f372f4b47 Improve condition schema validation (#144793) 2025-09-16 10:44:26 +02:00
Artur PragaczandGitHub 98df5f5f0c Validate selectors in the condition helper (#151884) 2025-09-08 14:20:11 +02:00
Artur PragaczandGitHub 06130219b4 Use relative condition keys (#150021) 2025-08-06 17:20:30 +01:00
Artur PragaczandGitHub 2b0cda0ad1 Adjust condition and trigger method names (#150060) 2025-08-05 19:46:03 +01:00
Erik MontnemeryandGitHub 6396f54e0d Move zone conditions to the zone integration (#148157) 2025-07-07 18:27:44 +02:00
510fd09163 Allow core integrations to describe their conditions (#147529)
Co-authored-by: Abílio Costa <[email protected]>
2025-07-04 16:03:42 +02:00
Erik MontnemeryandGitHub 26e3caea9a Add support for condition platforms to provide multiple conditions (#147376) 2025-06-25 18:10:30 +01:00
Erik MontnemeryandGitHub 0128d85999 Move sun conditions to the sun integration (#144742) 2025-05-12 23:03:37 +01:00
Erik MontnemeryandGitHub cc5c8bf5e3 Make helpers.frame.report_usage work when called from any thread (#139836)
* Make helpers.frame.report_usage work when called from any thread

* Address review comments, update tests

* Add test

* Update test

* Update recorder test

* Update tests
2025-03-05 19:37:34 +01:00
epenetandGitHub 364556a7dd Prefer from...import...as over import...as in core tests (#136146) 2025-01-21 09:28:17 +01:00
ee74a35417 Support time entities in time conditions (#124575)
Co-authored-by: Mark Bergsma <[email protected]>
2024-11-26 15:37:31 +01:00
6733f86c61 Use service_calls fixture in helper tests (#119275)
Co-authored-by: Franck Nijhof <[email protected]>
2024-06-10 14:57:34 +02:00
SidandGitHub 721b2c2ca8 Enable Ruff PT012 (#113957) 2024-06-08 17:59:08 +02:00
J. Nick KostonandGitHub 5a609c34bb Fix blocking I/O in the event loop when loading timezones (#117721) 2024-05-20 11:06:03 +02:00
Matthias AlphartandGitHub 076f57ee07 Allow templates for enabling conditions (#117047)
* Allow templates for enabling automation conditions

* Use `cv.template` instead of `cv.template_complex`
2024-05-15 21:03:28 +02:00
SidandGitHub 895f73d8e4 Enable Ruff A001 (#115654) 2024-04-21 23:25:27 +02:00
SidandGitHub d5f883fbf0 Unignore Ruff PLR in tests (#114470)
* 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 MuellerandGitHub 81c34ac952 Fix spelling [docstrings + comments] (#114168) 2024-03-25 11:33:00 +01:00
Marc MuellerandGitHub 19ab3d6daf Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
Jan-Philipp BeneckeandGitHub d1aa690c24 Migrate non-component tests to use freezegun/freezer (#105142) 2023-12-07 22:58:09 +01:00
Franck NijhofandGitHub 70ad5ab3e4 Update helper tests to use device & entity registry fixtures (#103710) 2023-11-10 09:32:19 +01:00