Erik Montnemery
5622e45980
Render icon and picture templates at setup ( #64838 )
2022-01-24 16:40:50 +01:00
Erik Montnemery
321f54494e
Teach TemplateEntity entity name ( #62175 )
...
* 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 ( #63265 )
2022-01-03 10:39:24 +01:00
Raman Gupta
6f8cd54ca1
Add button platform to template integration ( #61908 )
...
* 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 ( #62769 )
2021-12-27 20:52:26 +01:00
Franck Nijhof
60b2cdd069
Allow binary sensor state to be None ( #60193 )
2021-12-22 12:24:29 +01:00
Erik Montnemery
4353b1e62c
Improve tests for template binary sensor ( #62103 )
2021-12-16 21:31:37 +01:00
Franck Nijhof
1ed490ce62
Fix date/datetime support for templates ( #61088 )
...
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 ( #59781 )
2021-12-03 21:57:46 -08:00
Erik Montnemery
acf58111c6
Correct initial update of async_track_template_result ( #59705 )
2021-11-15 13:00:46 +01:00
Paulus Schoutsen
31153ac155
Move fixtures part 1 ( #58902 )
2021-11-01 20:47:05 -07:00
Franck Nijhof
65b19da3ff
Refactor input_select ( #53334 )
2021-10-25 20:38:06 -07:00
Erik Montnemery
c1d671b817
Fix template sensor when name template doesn't render ( #58088 )
2021-10-20 14:53:06 -07:00
Jan Bouwhuis
e2303dc713
bitwise and for test supported_features ( #58097 )
2021-10-20 15:31:23 +02:00
Jan Bouwhuis
62b7453719
Fix supported_features behaviour for fan platform ( #58065 )
2021-10-20 13:06:06 +02:00
Franck Nijhof
13db867c1d
Move attribution attribute to Entity base class ( #57492 )
2021-10-11 23:15:32 +02:00
Jeff Irion
9dfb684002
Enable template icons for template selects ( #57092 )
...
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 ( #57157 )
...
* 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 ( #56154 )
2021-10-01 09:35:44 -07:00
avee87
daebc34f4d
Add code_format to template alarm ( #56700 )
...
* 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 ( #56336 )
2021-09-17 15:13:17 -07:00
jan iversen
70eb519f76
Update template/test_light.py to use pytest ( #56300 )
2021-09-16 11:05:00 -07:00
jan iversen
692f611109
Update template/test_fan.py to use pytest ( #56215 )
2021-09-14 13:51:46 -07:00
jan iversen
96a9af8cc4
Update template/test_weather.py to use pytest ( #56223 )
2021-09-14 13:06:55 -07:00
jan iversen
4b2ff0a0ba
Update template/alarm_control_panel.py to use pytest ( #56229 )
2021-09-14 13:06:29 -07:00
jan iversen
990d474d02
use fixtures. ( #56130 )
2021-09-12 15:08:46 -07:00
jan iversen
cb8c0cb123
Update template/test_lock.py to use pytest ( #56102 )
2021-09-11 11:48:25 -07:00
jan iversen
ac1251c52b
Update template/test_trigger.py to use pytest ( #55950 )
2021-09-10 09:55:51 -07:00
Raman Gupta
37d75e8a03
Allow multiple template.select platform entries ( #55908 )
2021-09-07 14:50:07 -07:00
jan iversen
6348bf70ac
Add caplog setup fixture. ( #55714 )
2021-09-04 07:09:55 -07:00
jan iversen
7aa454231f
Update template/test_sensor.py to use pytest ( #55288 )
2021-09-03 22:56:12 -07:00
jan iversen
a756308e79
Update template/test_binary_sensor.py to use pytest ( #55220 )
2021-09-03 15:43:07 -07:00
Paulus Schoutsen
0c2772e0be
Fix template sensor availability ( #55635 )
2021-09-03 09:02:45 +02:00
Raman Gupta
e9625e4b7a
Add number platform to template integration ( #54789 )
2021-08-25 11:34:20 -07:00
Raman Gupta
8407ad01d4
Add select platform to template integration ( #54835 )
2021-08-25 11:21:24 -07:00
jan iversen
de7352dbde
Convert template/vacuum to pytest with fixtures ( #54841 )
2021-08-24 14:11:40 +02:00
J. Nick Koston
ee242764a1
Update template lock to support locking, unlocking, jammed ( #52817 )
2021-07-20 21:50:21 -07:00
Erik Montnemery
2097ab76f5
Allow combining value_template and position_template for template cover ( #52383 )
2021-07-01 14:09:48 +02:00
Paulus Schoutsen
cc00617cd5
Allow defining state class for template sensors ( #52130 )
2021-06-23 14:37:04 -07:00
Franck Nijhof
c5383219f1
Remove stale debug statements from tests ( #51059 )
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 ( #43850 )
...
* 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 ( #49615 )
2021-04-29 09:25:34 -07:00
Paulus Schoutsen
dcee78b747
Template sensor/binary sensors without trigger now respect section unique id ( #49613 )
2021-04-24 07:14:31 -07:00
Paulus Schoutsen
1016d4ea28
Support trigger-based template binary sensors ( #49504 )
...
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 ( #48981 )
2021-04-13 07:58:44 -07:00
Paulus Schoutsen
65126cec3e
Allow top level non-trigger template entities ( #48976 )
2021-04-12 17:15:50 -07:00
Paulus Schoutsen
2d5edeb1ef
Set hass when adding template attribute ( #49094 )
2021-04-11 22:49:09 -07:00
Brandon Rothweiler
52e8c7166b
Allow template covers to have opening and closing states ( #47925 )
2021-04-09 11:36:02 +02:00
Paulus Schoutsen
09635678bc
Allow reloading top-level template entities ( #48733 )
2021-04-06 12:10:39 -07:00
Paulus Schoutsen
e882460933
Support modern config for the trigger based template entity ( #48635 )
2021-04-02 16:57:16 -07:00