Commit graph

27 commits

Author SHA1 Message Date
Franck Nijhof
7537667e53
Adjust counter to not restore configuration parameters () 2023-05-22 15:27:44 +02:00
Franck Nijhof
f2899a19c1
Deprecate counter.configure service () 2023-05-22 15:27:33 +02:00
Franck Nijhof
97cac66195
Add counter.set_value service () 2023-05-10 18:52:10 +02:00
epenet
9f688a564f
Add type hints to integration tests (part 4) () 2023-02-11 08:26:13 +01:00
epenet
807c69f621
Add type hints to integration tests (b-c) () 2023-02-08 18:08:43 +01:00
epenet
30bf0634fe
Add per-file-ignore to pylint () 2023-01-22 17:26:24 +01:00
epenet
c5a56dab42
Apply hass-relative-import to tests (a-c) () 2022-09-19 09:48:25 +02:00
Erik Montnemery
47da1c456b
Don't allow partial update of counter settings () 2022-09-13 14:55:06 -04:00
Franck Nijhof
8aff8d89d2
Clean up async_reproduce_state helper usage () 2022-03-24 14:40:54 +01:00
Franck Nijhof
5a2b5fe7c5
Yoda assertion style removed is () 2021-03-20 13:55:10 +01:00
Erik Montnemery
87e7cebd36
Update tests c-h to use registry async_get () 2021-03-09 14:31:17 +01:00
Franck Nijhof
bc5a2da7b7
Add transition support to scenes, cleanup blocking parameter () 2020-04-20 18:07:50 -07:00
Alexei Chetroi
0670b4f457
Use collection helpers for counter integration ()
* 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 Bruckner
d6e230e66b Fix counter with empty config () 2020-01-04 00:03:54 +01:00
Franck Nijhof
1a2a976be2 Migrate counter tests from coroutine to async/await () 2020-01-01 17:17:55 -06:00
Bas Nijholt
38657c0055 Sort imports according to PEP8 for counter () 2019-12-09 11:47:35 +01:00
Santobert
c2c9213e9b Add improved scene support to the counter integration ()
* Add improved scene support to the counter integration

* Remove comment
2019-10-22 08:28:06 -07:00
Santobert
92508af253 Counter configure with value () 2019-10-21 15:01:35 -07:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Rohan Kapoor
f588fef3b4
Add minimum/maximum to counter ()
* 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 Mills
6f0a3b4b22
Async tests for counter () 2018-11-24 16:12:29 -05:00
Paulus Schoutsen
36c31a6293
Add permissions check in service helper ()
* Add permissions check in service helper

* Lint

* Fix tests

* Lint

* Typing

* Fix unused impoert
2018-11-21 12:26:08 +01:00
Paulus Schoutsen
08fe7c3ece
Pytest tests ()
* 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
mvn23
aeb21596a0 Fix counter restore. ()
Add config option to disable restore (always use initial value on restart).
Add unit tests for restore config option.
2018-10-03 23:12:21 +02:00
cdce8p
fa98a27df7 Remove service helper (2) ()
* alarm_control_panel

* automation

* camera

* climate

* counter

* fan

* Add legacy notes

* Fix tests
2018-09-26 09:49:55 +02:00
Paulus Schoutsen
1be61df9c0
Add recent context ()
* Add recent context

* Add async_set_context to components not using new services
2018-08-20 17:39:53 +02:00
Fabian Affolter
a5d5f3f727
Move counter component ()
* Fix docstring

* Add comment

* Move counter to folder

* Fix missing parts

* Commit it when file is saved
2017-11-05 13:51:52 +01:00