Erik Montnemery
68db751ce1
Refactor template image ( #95353 )
2023-06-27 18:46:36 +02:00
Erik Montnemery
17ac1a6d32
Set automations which fail validation unavailable ( #94856 )
2023-06-27 18:23:33 +02:00
G Johansson
30d22fe49b
Add new attributes into Template Weather ( #95100 )
2023-06-27 11:19:51 +02:00
Erik Montnemery
8e2ba81995
Add image platform to the template integration ( #94928 )
...
* Add image platform to the template integration
* Set a default name
* Fix typo
* Add tests
* Improve test coverage
* Derive content-type from fetched image
2023-06-26 15:54:51 +02:00
G Johansson
6ad4e13b38
Manual trigger entity and refactor command_line switch ( #91506 )
...
* TriggerEntity to CoordinatorTriggerEntity
* _render_templates
* split manual vs coordinator
* name
* ManualTriggerEntity
* value
* Remove ManualTriggerEntity
* ManualTriggerEntity
* process_manual_data
* Add test
* imports
* Move ManualTriggerEntity
* cmd_line switch
* Review comments
* Fix templating
* Review comments
* Remove unneeded logging
2023-05-08 10:19:37 +02:00
Jan Bouwhuis
722b991234
Support unknown state, position or tilt for template cover ( #91172 )
...
* Support unknown state for template cover
* Remove not related changes
2023-04-12 21:23:24 +02:00
epenet
ff8b91aeea
Add freezer to known test fixtures in pylint ( #89825 )
...
Add freezer to known fixtures in pylint
2023-03-16 22:39:41 -04:00
epenet
a0f725dfcb
Add type hints to tests ( #89497 )
2023-03-10 12:06:50 +01:00
epenet
9762b684c2
Adjust entity registry access in tests (3) ( #88964 )
2023-03-01 16:04:40 +01:00
Erik Montnemery
7bfc7f134c
Reset state of template cover on error ( #88915 )
2023-02-28 12:06:40 -05:00
Yann Le Moigne
2314d15761
Fix cover template: optimistic mode is ignored ( #87925 )
...
* Fix cover template: optimistic mode is ignored (#84334 )
* Fix invalid check in is_closed (make test pass)
* Add test for non optimistic cover
* Update homeassistant/components/template/cover.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update test_cover.py
* Fix format
* Fix tests
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-22 15:54:18 +01:00
epenet
88cfbf6a34
Add type hints to integration tests (part 22) ( #88234 )
2023-02-16 14:08:03 +01:00
Franck Nijhof
d3ed8de232
Update Ruff to v0.0.247 ( #88210 )
...
* Update Ruff to v0.0.247
* Fix new found violations
2023-02-15 16:46:03 -05:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
278050a73f
Add type hints to integration tests (t-z) ( #87707 )
2023-02-08 19:10:53 +01:00
Franck Nijhof
ef800335fb
Enable Ruff PT022 ( #86792 )
...
* Enable Ruff PT022
* Adjust found cases
2023-01-27 13:57:06 +01:00
Franck Nijhof
e50a531cd9
Code styling tweaks to the tests - Part 2 ( #86662 )
...
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2023-01-26 01:23:53 +01:00
epenet
1a8933d59d
Adjust invalid test values in template ( #86008 )
2023-01-16 14:42:47 +01:00
Franck Nijhof
2e92fefc0a
Fix uom/device class mismatches in tests ( #84372 )
2022-12-21 22:47:59 +01:00
Petro31
f3007b22c4
Allow setting set_percentage and set_preset_mode of template fan without turning on ( #75656 )
...
* decouple set_percentage and set_preset_mode from entity state
* correct set_percent self._state logic
* Add tests
* remove _VALUD_STATES
* decouple percent and preset_mode
2022-10-03 20:22:05 +02:00
epenet
0ac581a0b1
Cleanup EntityFeature in tests ( #78859 )
2022-09-21 10:48:55 +02:00
epenet
7bc2712142
Adjust root-import in tests ( #78761 )
...
* Adjust root-import in tests
* Adjust diagnostics
* Adjust button
* Adjust select
* Adjust device_tracker
* Adjust camera
* Adjust humidifier
* Adjust media_source
* Adjust update
* Adjust siren
* Adjust number
* Adjust alarm_control_panel
* Adjust notify
* Adjust sensor
* Adjust switch
* Revert anthemav
* Don't adjust demo humidifier
2022-09-19 15:22:23 +02:00
Erik Montnemery
c134bcc536
Remove use of deprecated SUPPORT_* constants from Template light ( #77836 )
2022-09-08 11:22:38 +02:00
Erik Montnemery
60c8d95a77
Remove white_value support from light ( #76926 )
2022-08-18 08:21:05 -04:00
Erik Montnemery
426a620084
Remove deprecated white_value support from template light ( #76923 )
2022-08-17 07:53:56 -04:00
Kostas Chatzikokolakis
3f53ed5d5c
Add trigger/arm_custom_bypass to Template Alarm Control Panel ( #74629 )
2022-07-07 20:31:03 +02:00
mbo18
24d2d62121
Add vacation mode to Template Alarm Control Panel ( #74261 )
2022-06-30 12:22:03 -07:00
akloeckner
aa314a0901
Add this variable to trigger-based templates ( #72437 )
...
add this variables to trigger-based templates
follow-up for https://github.com/home-assistant/core/issues/70359
2022-06-27 08:59:29 +02:00
Erik Montnemery
4885331509
Fail template functions when no default specified ( #71687 )
2022-05-13 09:46:49 -07:00
Erik Montnemery
83080dbba8
Support this variable in template cover actions ( #71793 )
2022-05-13 09:34:00 -07:00
Erik Montnemery
a17fa6d6d5
Support this variable in template fan actions ( #71795 )
2022-05-13 09:33:44 -07:00
Erik Montnemery
8b412acc98
Support this variable in template lock actions ( #71796 )
2022-05-13 09:33:25 -07:00
Erik Montnemery
66ec4564f4
Support this variable in template number actions ( #71797 )
2022-05-13 09:33:00 -07:00
Erik Montnemery
adde9130a1
Support this variable in template select actions ( #71798 )
2022-05-13 09:32:45 -07:00
Erik Montnemery
6f7a465347
Support this variable in template vacuum actions ( #71800 )
2022-05-13 09:32:19 -07:00
Erik Montnemery
9eca91afc9
Support this variable in template light actions ( #71805 )
2022-05-13 09:31:37 -07:00
Erik Montnemery
042321be60
Support this variable in template button actions ( #71792 )
2022-05-13 17:28:36 +02:00
Erik Montnemery
184421dae6
Support this variable in template switch actions ( #71799 )
2022-05-13 16:44:27 +02:00
Erik Montnemery
6cff2f8571
Tweak template light tests ( #71729 )
2022-05-13 12:22:34 +02:00
Erik Montnemery
dba2f5ab1c
Support this variable in template alarm actions ( #71744 )
2022-05-13 12:17:40 +02:00
Erik Montnemery
3332c853c4
Remove prints from template tests ( #71746 )
2022-05-12 18:34:26 +02:00
Erik Montnemery
11cc1feb85
Tweak template switch tests ( #71738 )
2022-05-12 17:08:21 +02:00
Erik Montnemery
35e4f11e0b
Tweak template lock tests ( #71734 )
2022-05-12 16:29:48 +02:00
Erik Montnemery
b70e97e949
Remove unused calls fixture from template tests ( #71735 )
2022-05-12 16:04:01 +02:00
Erik Montnemery
1ef3800844
Tweak template cover tests ( #71732 )
2022-05-12 15:22:57 +02:00
Erik Montnemery
8f50a70ff5
Tweak template alarm tests ( #71730 )
2022-05-12 14:09:43 +02:00
Erik Montnemery
fb6cdb5a38
Optimistically set hs_color in template light ( #71629 )
...
* Optimistically set hs_color in template light
* Update light.py
* Update test
2022-05-11 09:57:54 +02:00
Erik Montnemery
275a90a2e8
Check state attributes in template light tests ( #71608 )
2022-05-10 12:46:02 +02:00
Erik Montnemery
eba125b093
Ensure 'this' variable is always defined for template entities ( #70911 )
2022-05-03 07:43:44 -07:00
Shay Levy
75debb7dec
Add entity id to template error logging ( #71107 )
...
* Add entity id to template error logging
* Increase coverage
2022-04-30 19:24:24 +03:00
epenet
7d2363ad22
Use light enums in tests ( #70801 )
2022-04-26 16:32:00 +02:00
Erik Montnemery
9bec649323
Restore state of trigger-based template sensor ( #69344 )
2022-04-21 09:32:18 -07:00
akloeckner
d20a620590
Make `this` variable available in template entities ( #65201 )
...
* feat: make this variable available in template entities
This makes the variable `this` available in template entities.
It will simplify the use of self-referencing template entities.
Because, without this, we have to repeat the entity id every time.
If we can solve this without explicitly spelling the entity id,
code can be re-used much better.
As a side-effect, this will allow to use `variables`-like patterns,
where attributes can be used as variables to calculate subsequent attributes or state.
Example:
```yaml
template:
sensor:
- name: test
state: "{{ this.attributes.test }}"
# not: "{{ state_attr('sensor.test', 'test' }}"
attributes:
test: "{{ now() }}"
```
* expose entity_id instead of this
* add test
* Refactor to expose this variable
* Tweak repr dunder
Co-authored-by: Erik <erik@montnemery.com>
2022-04-20 15:30:17 +02:00
Erik Montnemery
7b5dd4a623
Restore attributes of template binary sensor ( #69350 )
2022-04-05 22:58:12 -07:00
epenet
831e2ace9c
Prettify yaml (tests) ( #68891 )
2022-03-30 11:26:08 +02:00
Franck Nijhof
d645e80ccd
Clean up async_update_entity helper usage ( #68641 )
2022-03-25 15:22:58 -07:00
Paulus Schoutsen
8bbbd1947d
Raise if referenced entity does not support service ( #68394 )
2022-03-20 16:01:58 -07:00
Erik Montnemery
cf4033b1bc
Simplify time zone setting in tests ( #68330 )
...
* 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 ( #67538 )
2022-03-14 12:28:55 -07:00
J. Nick Koston
723dcbafca
Complete fan speed transition from #59781 ( #67743 )
2022-03-09 10:38:12 +01:00
Erik Montnemery
2007379701
Restore state of template binary sensor with on or off delay ( #67546 )
2022-03-03 15:27:39 -08:00
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
Paulus Schoutsen
212d9aa748
Fix trigger template entities without a unique ID ( #48631 )
2021-04-02 10:24:38 -07:00
Erik Montnemery
b26779a27a
Add id to automation triggers ( #48464 )
2021-03-31 14:56:04 +02:00
Paulus Schoutsen
022f56f54d
Allow specifying template entities based on triggers ( #48169 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-29 09:57:51 -07:00
J. Nick Koston
564688af25
Fix template fan default speed count ( #48389 )
...
* Fix template fan default speed count
The default speed count was defaulting to 3 when percentage
was implemented instead of the documented value of 100
* Increase coverage
* remove unreachable code
2021-03-29 09:33:56 +02:00
Christian Soltenborn
955804bf58
Add template support for remaining attributes of weather entity ( #47736 )
...
* added template support for remaining attributes of weather entity
* wind bearing is now angle (number)
2021-03-27 18:53:35 +00:00
Paulus Schoutsen
3dec394cad
Migrate template to register reload service on async_setup ( #48273 )
2021-03-23 20:35:15 -07:00
Franck Nijhof
5a2b5fe7c5
Yoda assertion style removed is ( #48142 )
2021-03-20 13:55:10 +01:00
sycx2
009e44ed9b
Rewrite tests for Template Light ( #41163 )
2021-03-17 11:30:44 +01:00
J. Nick Koston
53952b9662
Ensure template fan value_template always determines on state ( #47598 )
2021-03-08 18:34:34 +01:00
Ville Skyttä
dc880118a4
Lint suppression cleanups ( #47248 )
...
* Unused pylint suppression cleanups
* Remove outdated pylint bug references
* Add flake8-noqa config and note to run it every now and then
* Add codes to noqa's
* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
Erik Montnemery
dd9e926689
Pass variables to initial evaluation of template trigger ( #47236 )
...
* Pass variables to initial evaluation of template trigger
* Add test
* Clarify test
2021-03-01 23:34:26 +01:00
Diogo Gomes
0e44d61225
Add weather platform to template domain ( #45031 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-02-21 18:08:00 -10:00
J. Nick Koston
f2b303d509
Implement percentage step sizes for fans ( #46512 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-02-18 21:05:09 -10:00
Anders Melchiorsen
f8f86fbe48
Do not trigger when template is true at startup ( #46423 )
2021-02-14 19:54:11 +01:00
Erik Montnemery
ed31cc363b
Wait for registries to load at startup ( #46265 )
...
* Wait for registries to load at startup
* Don't decorate new functions with @bind_hass
* Fix typing errors in zwave_js
* Load registries in async_test_home_assistant
* Tweak
* Typo
* Tweak
* Explicitly silence mypy errors
* Fix tests
* Fix more tests
* Fix test
* Improve docstring
* Wait for registries to load
2021-02-11 17:36:19 +01:00
J. Nick Koston
babfef829d
Add support for percentage speeds and preset modes to template fan ( #45478 )
2021-01-28 10:44:36 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
J. Nick Koston
035f9412ba
Fix template triggers from time events ( #44603 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-12-29 23:16:39 +01:00
Paulus Schoutsen
b3be708db6
Add default config if not there ( #43321 )
...
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-11-25 15:10:04 +01:00
Maciej Wilczyński
6a5546afc1
Add an option to template delay_on/off in template binary sensor ( #43259 )
2020-11-17 07:24:04 -10:00
J. Nick Koston
935c2df7cb
Add a test for template entities that reuse the template ( #42404 )
2020-10-26 16:08:57 +01:00
Paulus Schoutsen
5dac3883b0
Stub light profiles ( #42232 )
2020-10-23 16:28:21 +02:00
Philip Allgaier
dde6305549
Cleanup unused loggers (components N-Z + tests) ( #41982 )
2020-10-16 21:24:08 -05:00
Jaroslav Hanslík
3e82cc1b4f
Add arming state to template alarm control panel ( #41964 )
2020-10-16 23:01:06 +02:00
sycx2
91042e3e46
Improve template test lock ( #41195 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-10-16 13:25:57 +02:00
sycx2
fc75927d85
Rewrite tests for Template Binary Sensor ( #41098 )
2020-10-12 17:56:08 +02:00
Franck Nijhof
ee914366a8
Add native Python types support to templates ( #41227 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-10-07 00:05:52 +02:00
Franck Nijhof
357a0e9d7e
Improve switch template tests, remove common test helpers ( #41322 )
2020-10-06 14:54:39 +02:00
sycx2
e813d3ebf9
Improve template test sensor ( #41199 )
2020-10-05 14:52:31 +02:00
J. Nick Koston
b1ba1a7134
Verify template sensors that reference other template sensors can reload ( #41031 )
2020-10-02 08:34:33 +02:00
J. Nick Koston
deedd41d62
Prevent template loop detection from triggering when all templates are self referencing ( #41013 )
2020-10-01 22:11:11 +02:00
J. Nick Koston
b45215f1d2
Implement template rate_limit directive ( #40667 )
2020-10-01 21:39:44 +02:00
Franck Nijhof
8837ed35cd
Use direct service calls in tests instead of automation common ( #40623 )
...
* Use direct service calls in tests instead of automation common
* Remove automation common test helpers
2020-09-26 19:28:26 +02:00
J. Nick Koston
aaa8083d49
Change template loop detection strategy to allow self-referencing updates when there are multiple templates ( #39943 )
2020-09-12 14:20:21 +02:00
J. Nick Koston
fd8a4182d9
Detect self-referencing loops in template entities and log a warning ( #39897 )
2020-09-10 20:50:11 +02:00
J. Nick Koston
4bbd69955b
Restore missing device_class to template binary_sensor ( #39805 )
2020-09-08 17:12:23 +02:00
J. Nick Koston
0507ec9d8b
Fix cover template entities honoring titlecase True/False ( #39803 )
2020-09-08 17:08:31 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
J. Nick Koston
20398cc0a6
Subscribe to state change events only if the template has entities ( #39188 )
2020-08-26 00:20:04 +02:00