Commit Graph
54 Commits
Author SHA1 Message Date
b0e05f795d Reproduce only value in counter reproduce_state (#175780)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-07 10:22:49 +02:00
epenetandGitHub c8b173368c Migrate counter entity attributes to StrEnum (#175738) 2026-07-06 17:08:15 +02:00
Erik MontnemeryandGitHub b6b8391cbf Remove purpose-specific triggers and conditions from labs (#174450) 2026-06-22 16:58:51 +01:00
epenetandGitHub 90d45432dc Use DOMAIN constant in tests (async_mock_service) (#173002) 2026-06-04 12:35:54 +02:00
Erik MontnemeryandGitHub 4bf3a5b4bd Adjust behavior of numerical condition and trigger between and outside (#172335) 2026-05-27 17:03:58 +02:00
Erik MontnemeryandGitHub f8a65a7c6f Rename trigger behavior options (#172348) 2026-05-27 16:01:11 +02:00
Franck NijhofGitHubcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2af7f43ed7 Fix line length violations in tests/components c (#170845)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-05-17 13:10:54 +02:00
Erik MontnemeryandGitHub 65bc4bf1d0 Add missing trigger and condition tests (#169945) 2026-05-06 21:53:40 +02:00
Erik MontnemeryGitHubcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>frenck
05eeb6a1bc Enable duration support in all entity conditions (#169532)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: frenck <195327+frenck@users.noreply.github.com>
2026-04-30 18:13:06 +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
Artur PragaczandGitHub f5fef37210 Remove bind_hass usage (#168369) 2026-04-16 15:38:59 +02:00
Abílio CostaandGitHub 42c3610685 Add counter purpose-specific condition (#166879) 2026-03-30 16:41:08 +02:00
Erik MontnemeryandGitHub f84398eb9c Speed up trigger tests (#166522) 2026-03-26 00:51:14 +01:00
aeb920e8ef Add domain driven triggers to counter helper (#164545)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2026-03-25 15:40:15 +01:00
epenetandGitHub 44a4be012d Use constants in counter tests (#164020) 2026-02-25 14:13:24 +01:00
karwostsandGitHub 57c024449c Fix broken invalid_config tests (#148965) 2025-07-18 09:02:44 +02:00
epenetandGitHub 975363b660 Add missing hass type hint in component tests (c) (#124067) 2024-08-18 15:35:31 +02:00
epenetandGitHub 092cdcfe91 Improve type hints in tests (a-h) (#118379) 2024-05-30 08:46:18 +02:00
epenetandGitHub 8837c50da7 Use registry fixtures in tests (a-h) (#118288) 2024-05-28 13:15:16 +02:00
J. Nick KostonandGitHub aaac879c83 Fix calling sync api in counter/ffmpeg/device_tracker tests (#113441) 2024-03-14 19:34:44 +01:00
J. Nick KostonandGitHub c1f5c7c4b7 Remove usage of async_add_job in tests (#113259) 2024-03-13 19:33:33 -10:00
Marc MuellerandGitHub 32f3f46542 Add empty line after module docstring (2) [tests.components] (#112737) 2024-03-08 19:16:21 +01:00
Marc MuellerandGitHub 38adfbf1a3 Add empty line after module docstring [tests a-e] (#112708) 2024-03-08 08:50:25 -05:00
J. Nick KostonandGitHub c399cab427 Small speed up to checking core state (#107845) 2024-01-18 08:41:32 -10:00
Jan-Philipp BeneckeandGitHub 9ab1cb83d8 Update a-c* tests to use entity & device registry fixtures (#103793)
* Update a-c* tests to use entity & device registry fixtures

* Revert some changes

* Revert formatting

* retrigger CI
2023-11-12 13:45:30 -05:00
G JohanssonandGitHub 72c02d4d63 Remove counter configure service (#103204)
* Remove counter configure service after deprecation

* reproduce state
2023-11-04 16:17:51 +01:00
Franck NijhofandGitHub 7537667e53 Adjust counter to not restore configuration parameters (#93344) 2023-05-22 15:27:44 +02:00
Franck NijhofandGitHub f2899a19c1 Deprecate counter.configure service (#93343) 2023-05-22 15:27:33 +02:00
Franck NijhofandGitHub 97cac66195 Add counter.set_value service (#92863) 2023-05-10 18:52:10 +02:00
epenetandGitHub 9f688a564f Add type hints to integration tests (part 4) (#87848) 2023-02-11 08:26:13 +01:00
epenetandGitHub 807c69f621 Add type hints to integration tests (b-c) (#87698) 2023-02-08 18:08:43 +01:00
epenetandGitHub 30bf0634fe Add per-file-ignore to pylint (#86289) 2023-01-22 17:26:24 +01:00
epenetandGitHub c5a56dab42 Apply hass-relative-import to tests (a-c) (#78728) 2022-09-19 09:48:25 +02:00
Erik MontnemeryandGitHub 47da1c456b Don't allow partial update of counter settings (#78371) 2022-09-13 14:55:06 -04:00
Franck NijhofandGitHub 8aff8d89d2 Clean up async_reproduce_state helper usage (#68617) 2022-03-24 14:40:54 +01:00
Franck NijhofandGitHub 5a2b5fe7c5 Yoda assertion style removed is (#48142) 2021-03-20 13:55:10 +01:00
Erik MontnemeryandGitHub 87e7cebd36 Update tests c-h to use registry async_get (#47652) 2021-03-09 14:31:17 +01:00
Franck NijhofandGitHub bc5a2da7b7 Add transition support to scenes, cleanup blocking parameter (#34434) 2020-04-20 18:07:50 -07:00
Alexei ChetroiandGitHub 0670b4f457 Use collection helpers for counter integration (#32295)
* Refactor counter to use config dict.

* Use collection helpers for counter integration.

* Update tests.

* Use callbacks were applicable.
2020-02-28 14:06:39 -08:00
Phil BrucknerandPaulus Schoutsen d6e230e66b Fix counter with empty config (#30454) 2020-01-04 00:03:54 +01:00
Franck NijhofandAndrew Sayre 1a2a976be2 Migrate counter tests from coroutine to async/await (#30368) 2020-01-01 17:17:55 -06:00
Bas NijholtandFranck Nijhof 38657c0055 Sort imports according to PEP8 for counter (#29692) 2019-12-09 11:47:35 +01:00
SantobertandPaulus Schoutsen c2c9213e9b Add improved scene support to the counter integration (#28103)
* Add improved scene support to the counter integration

* Remove comment
2019-10-22 08:28:06 -07:00
SantobertandPaulus Schoutsen 92508af253 Counter configure with value (#28066) 2019-10-21 15:01:35 -07:00
Paulus Schoutsen 4de97abc3a Black 2019-07-31 12:25:30 -07:00
Rohan KapoorandGitHub f588fef3b4 Add minimum/maximum to counter (#22608)
* Added minimum/maximum to counter

* Added min/max testcases

* remove duplicate

* cosmetic changes

* removed blank lines at eof

* added newline at eof

* type cv -> vol

* more fixes

* - fixed min/max warnings
- fixed failing tests

* Added linewrap

* - Added cast to int
- Fixed double quotes

* - removed None check in __init__
- fixed failing test

* copy paste fix

* copy paste fix

* Added possibility to change counter properties trough service call

* fixed copy paste errors

* Added '.' to comment

* rephrased docstring

* Fix tests after rebase

* Clean up per previous code review comments

* Replace setup service with configure

* Update services description

* Update tests to use configure instead of setup
2019-04-18 19:02:01 +09:00
Adam MillsandGitHub 6f0a3b4b22 Async tests for counter (#18684) 2018-11-24 16:12:29 -05:00
Paulus SchoutsenandGitHub 36c31a6293 Add permissions check in service helper (#18596)
* Add permissions check in service helper

* Lint

* Fix tests

* Lint

* Typing

* Fix unused impoert
2018-11-21 12:26:08 +01:00
Paulus SchoutsenandGitHub 08fe7c3ece Pytest tests (#17750)
* Convert core tests

* Convert component tests to use pytest assert

* Lint 🤷‍♂️

* Fix test

* Fix 3 typos in docs
2018-10-24 12:10:05 +02:00