Commit graph

142 commits

Author SHA1 Message Date
Paulus Schoutsen
8bbbd1947d
Raise if referenced entity does not support service () 2022-03-20 16:01:58 -07:00
Erik Montnemery
cf4033b1bc
Simplify time zone setting in tests ()
* Simplify timezone setting in tests

* Fix typo

* Adjust caldav tests

* Adjust input_datetime tests

* Adjust time_date tests

* Adjust tod tests

* Adjust helper tests

* Adjust recorder tests

* Adjust risco tests

* Adjust aemet tests

* Adjust flux tests

* Adjust forecast_solar tests

* Revert unnecessary change in forecast_solar test

* Adjust climacell tests

* Adjust google tests

* Adjust sensor tests

* Adjust sonarr tests

* Adjust template tests

* Adjust zodiac tests

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-03-20 10:25:15 +01:00
Erik Montnemery
7fc0ffd5c5
Restore state of trigger based template binary sensor () 2022-03-14 12:28:55 -07:00
J. Nick Koston
723dcbafca
Complete fan speed transition from () 2022-03-09 10:38:12 +01:00
Erik Montnemery
2007379701
Restore state of template binary sensor with on or off delay () 2022-03-03 15:27:39 -08:00
Erik Montnemery
5622e45980
Render icon and picture templates at setup () 2022-01-24 16:40:50 +01:00
Erik Montnemery
321f54494e
Teach TemplateEntity entity name ()
* Teach TemplateEntity entity name

* Remove default name from number and select config schemas

* Re-add default name to number and select config schemas

* Set name to None if name template fails to render

* Update template button
2022-01-24 15:44:05 +01:00
Erik Montnemery
8f99cb51b5
Improve test coverage of template button () 2022-01-03 10:39:24 +01:00
Raman Gupta
6f8cd54ca1
Add button platform to template integration ()
* Add button platform to template integration

* review comments

* add unique ID check
2022-01-03 10:03:37 +01:00
Amos Yuen
45ab9a3e33
Init template trigger binary sensor to None instead of False () 2021-12-27 20:52:26 +01:00
Franck Nijhof
60b2cdd069
Allow binary sensor state to be None () 2021-12-22 12:24:29 +01:00
Erik Montnemery
4353b1e62c
Improve tests for template binary sensor () 2021-12-16 21:31:37 +01:00
Franck Nijhof
1ed490ce62
Fix date/datetime support for templates ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-12-09 11:43:48 +01:00
J. Nick Koston
7fbe1dbc99
Remove legacy fan compatibility shim () 2021-12-03 21:57:46 -08:00
Erik Montnemery
acf58111c6
Correct initial update of async_track_template_result () 2021-11-15 13:00:46 +01:00
Paulus Schoutsen
31153ac155
Move fixtures part 1 () 2021-11-01 20:47:05 -07:00
Franck Nijhof
65b19da3ff
Refactor input_select () 2021-10-25 20:38:06 -07:00
Erik Montnemery
c1d671b817
Fix template sensor when name template doesn't render () 2021-10-20 14:53:06 -07:00
Jan Bouwhuis
e2303dc713
bitwise and for test supported_features () 2021-10-20 15:31:23 +02:00
Jan Bouwhuis
62b7453719
Fix supported_features behaviour for fan platform () 2021-10-20 13:06:06 +02:00
Franck Nijhof
13db867c1d
Move attribution attribute to Entity base class () 2021-10-11 23:15:32 +02:00
Jeff Irion
9dfb684002
Enable template icons for template selects ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-10-07 15:38:02 +02:00
Paulus Schoutsen
a4d9019ffc
Refactor persistent notification to no longer route all data via a service ()
* Convert persistent notification tests to async

* Create/dismiss persistent notifications in exposed functions, not service calls

* Fix notify persistent_notification

* Remove setting up persistent_notification

* Drop more setups

* Empty methods

* Undeprecate sync methods because too big task

* Fix setup clearing notifications

* Fix a bunch of tests

* Fix more tests

* Uno mas

* Test persistent notification events

* Clean up stale comment

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-10-07 12:58:00 +02:00
Jeff Irion
15a8f6741b
Enable template icons for template numbers () 2021-10-01 09:35:44 -07:00
avee87
daebc34f4d
Add code_format to template alarm ()
* Added code_format to template alarm

* review comment

* review comment

* use constant

* back to enum

* none -> no_code
2021-09-29 16:59:46 +02:00
jan iversen
c4195c547c
Update template/test_init.py to use pytest () 2021-09-17 15:13:17 -07:00
jan iversen
70eb519f76
Update template/test_light.py to use pytest () 2021-09-16 11:05:00 -07:00
jan iversen
692f611109
Update template/test_fan.py to use pytest () 2021-09-14 13:51:46 -07:00
jan iversen
96a9af8cc4
Update template/test_weather.py to use pytest () 2021-09-14 13:06:55 -07:00
jan iversen
4b2ff0a0ba
Update template/alarm_control_panel.py to use pytest () 2021-09-14 13:06:29 -07:00
jan iversen
990d474d02
use fixtures. () 2021-09-12 15:08:46 -07:00
jan iversen
cb8c0cb123
Update template/test_lock.py to use pytest () 2021-09-11 11:48:25 -07:00
jan iversen
ac1251c52b
Update template/test_trigger.py to use pytest () 2021-09-10 09:55:51 -07:00
Raman Gupta
37d75e8a03
Allow multiple template.select platform entries () 2021-09-07 14:50:07 -07:00
jan iversen
6348bf70ac
Add caplog setup fixture. () 2021-09-04 07:09:55 -07:00
jan iversen
7aa454231f
Update template/test_sensor.py to use pytest () 2021-09-03 22:56:12 -07:00
jan iversen
a756308e79
Update template/test_binary_sensor.py to use pytest () 2021-09-03 15:43:07 -07:00
Paulus Schoutsen
0c2772e0be
Fix template sensor availability () 2021-09-03 09:02:45 +02:00
Raman Gupta
e9625e4b7a
Add number platform to template integration () 2021-08-25 11:34:20 -07:00
Raman Gupta
8407ad01d4
Add select platform to template integration () 2021-08-25 11:21:24 -07:00
jan iversen
de7352dbde
Convert template/vacuum to pytest with fixtures () 2021-08-24 14:11:40 +02:00
J. Nick Koston
ee242764a1
Update template lock to support locking, unlocking, jammed () 2021-07-20 21:50:21 -07:00
Erik Montnemery
2097ab76f5
Allow combining value_template and position_template for template cover () 2021-07-01 14:09:48 +02:00
Paulus Schoutsen
cc00617cd5
Allow defining state class for template sensors () 2021-06-23 14:37:04 -07:00
Franck Nijhof
c5383219f1
Remove stale debug statements from tests () 2021-05-25 11:52:20 +02:00
jacekpaszkowski
85495c08b0
Add support for effects, transition/brightness parameters to template light, min_mireds and max_mireds templates ()
* Add support for effects, transition/brightness parameters to template light, min_mireds and max_mireds templates

* code fixes

* min_mireds, max_mireds fixes

* test fixes

* more fixes

* format fix

* style fix

* _update_effect_list change

* style fix

* Fixes after review

* additional fixes

* duplicated lines removed

* fixes after CI run

* test fixes

* code and test fixes

* supports transition change, added test cases
2021-05-24 13:31:57 +02:00
Paulus Schoutsen
f5e4b13814
Add auto_off to binary sensor template entity () 2021-04-29 09:25:34 -07:00
Paulus Schoutsen
dcee78b747
Template sensor/binary sensors without trigger now respect section unique id () 2021-04-24 07:14:31 -07:00
Paulus Schoutsen
1016d4ea28
Support trigger-based template binary sensors ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-04-22 14:54:28 -07:00
Paulus Schoutsen
beea2dd35f
Internally work with modern config syntax for template binary sensor platform config () 2021-04-13 07:58:44 -07:00