hass-core/tests/components/template
Allen Porter 7b1c0c2df2
Extend template entities with a script section (#96175)
* Extend template entities with a script section

This allows making a trigger entity that triggers a few times a day,
and allows collecting data from a service resopnse which can be
fed into a template entity.

The current alternatives are to publish and subscribe to events or to
store data in input entities.

* Make variables set in actions accessible to templates

* Format code

---------

Co-authored-by: Erik <erik@montnemery.com>
2023-09-02 16:19:45 -07:00
..
fixtures Fail template functions when no default specified (#71687) 2022-05-13 09:46:49 -07:00
snapshots Add explicit test of template config entry setup (#99345) 2023-08-30 19:56:34 +02:00
__init__.py
conftest.py Enable Ruff PT022 (#86792) 2023-01-27 13:57:06 +01:00
test_alarm_control_panel.py Add type hints to integration tests (part 22) (#88234) 2023-02-16 14:08:03 +01:00
test_binary_sensor.py Add explicit test of template config entry setup (#99345) 2023-08-30 19:56:34 +02:00
test_button.py Python 3.10 support cleanups (#98640) 2023-08-21 19:14:07 +02:00
test_config_flow.py Improve template sensor config flow validation (#99373) 2023-08-31 15:16:32 +02:00
test_cover.py Support unknown state, position or tilt for template cover (#91172) 2023-04-12 21:23:24 +02:00
test_fan.py Add type hints to integration tests (part 22) (#88234) 2023-02-16 14:08:03 +01:00
test_image.py Ruff: isort don't split imports based on trailing comma (#98162) 2023-08-10 14:27:03 +02:00
test_init.py Add type hints to integration tests (part 22) (#88234) 2023-02-16 14:08:03 +01:00
test_light.py Add type hints to integration tests (part 22) (#88234) 2023-02-16 14:08:03 +01:00
test_lock.py Add type hints to integration tests (part 22) (#88234) 2023-02-16 14:08:03 +01:00
test_manual_trigger_entity.py Move TemplateEntity to template (#98957) 2023-08-24 15:37:04 +02:00
test_number.py Add type hints to integration tests (part 22) (#88234) 2023-02-16 14:08:03 +01:00
test_select.py Add type hints to integration tests (part 22) (#88234) 2023-02-16 14:08:03 +01:00
test_sensor.py Extend template entities with a script section (#96175) 2023-09-02 16:19:45 -07:00
test_switch.py Add type hints to integration tests (part 22) (#88234) 2023-02-16 14:08:03 +01:00
test_template_entity.py Add type hints to integration tests (t-z) (#87707) 2023-02-08 19:10:53 +01:00
test_trigger.py Set automations which fail validation unavailable (#94856) 2023-06-27 18:23:33 +02:00
test_vacuum.py Check supported features in calls to vacuum services (#95833) 2023-07-10 13:05:47 +02:00
test_weather.py Modernize template weather (#98064) 2023-08-21 15:48:14 +02:00