60 Commits
Author SHA1 Message Date
epenetandGitHub 3bdb4b9b26 Use get_state_coordinates in template helper (#180007) 2026-08-24 17:42:49 +02:00
Erik MontnemeryandGitHub 5592281383 Improve iteration in device registry + add tests (#179962) 2026-08-24 17:41:10 +02:00
Erik MontnemeryandGitHub cde0100c33 Protect the DeviceRegistry.child_devices container (#179713) 2026-08-21 15:54:23 +02:00
Erik MontnemeryandGitHub 48017e6bb3 Protect the DeviceRegistry.devices container (#179578) 2026-08-21 09:50:58 +02:00
ad96b06be6 Add child devices (#178666)
Co-authored-by: Artur Pragacz <artur@pragacz.com>
2026-08-13 13:53:15 +02:00
Clément NotinandGitHub afc0ceabd1 Factorize common code to _datetime_as_string (#172288) 2026-07-18 23:00:11 +02:00
d0575b6b1b Add latitude/longitude to base EntityStateAttribute enum (#176119)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 11:35:01 -04:00
Franck NijhofandGitHub 715c355fda Add numeric fast path for template result parsing (#175402) 2026-07-08 03:30:10 -04:00
Franck NijhofandGitHub 985ef60d8a Fast-path all template state wrappers in sandbox attribute check (#175397) 2026-07-08 03:28:09 -04:00
a3c58649d8 Use EntityStateAttribute enum in helpers (#175836)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-07 13:32:55 +02:00
Franck NijhofandGitHub 353043c537 Pin recently compiled template code objects in a bounded LRU (#175399) 2026-07-03 01:25:21 +02:00
Abílio CostaandGitHub dc6269f52d Add override decorator to remaining homeassistant dir files (#174488) 2026-06-22 21:56:03 +02:00
Ville SkyttäandGitHub 34434e8508 Docstring and comment grammar etc fixes (#174144) 2026-06-17 23:06:10 +02:00
Franck NijhofGitHubcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
047edc035d Skip literal_eval for template results that cannot be a Python literal (#173664)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-06-15 17:24:29 +02:00
Franck NijhofandGitHub dadfea4d62 Return enum values from config_entry_attr template function (#173554) 2026-06-12 18:49:42 +02:00
Erik MontnemeryandGitHub ffc6eeadc2 Always include template errors in trace (#172917) 2026-06-04 16:28:05 +02:00
Erik MontnemeryandGitHub dd7bd0c8a4 Prevent log spam when WS subscribe_condition is active (#172832) 2026-06-03 10:10:30 +02:00
bdc9d881ea Load template extensions by class to prevent import deadlock (#170995)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-17 16:55:54 -04:00
bdd6b34055 Fix flaky test_template_timeout race condition (#170832)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-15 20:25:00 +02:00
eae809abd1 Fix line length violations in core and helpers (#170534)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-14 16:31:01 -04:00
b3eb97adad Enable ruff RUF046 rule and remove unnecessary int() casts (#170514)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-13 23:50:44 +02:00
Franck NijhofandGitHub adab0d6486 Clean up template engine after extension modularization (#170346) 2026-05-11 18:41:54 -04:00
epenetandGitHub 7169d52010 Remove import annotations from core (#169547) 2026-04-30 20:34:43 +02:00
Franck NijhofandGitHub 71fc725d75 Extract state template functions into a state Jinja2 extension (#169034) 2026-04-29 10:03:38 +02:00
2a5b95ba4d Require hass in Template (#169292)
Co-authored-by: Copilot <copilot@github.com>
2026-04-29 09:26:32 +02:00
Franck NijhofandGitHub 68d6a3e6bd Move template state infrastructure into a dedicated states module (#167996) 2026-04-14 10:12:26 +02:00
Franck NijhofandGitHub 4e13731838 Extract entity template functions into an entity Jinja2 extension (#167992) 2026-04-12 10:00:53 +02:00
326799209c Extract config entry template functions into a config entry Jinja2 extension (#167360)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Joostlek <joostlek@outlook.com>
2026-04-09 11:49:56 +02:00
ea4d85f96c Extract arithmetic template filters into the math Jinja2 extension (#167309)
Co-authored-by: Joostlek <joostlek@outlook.com>
2026-04-08 14:27:22 +02:00
b697b3a54e Extract version template function into a version Jinja2 extension (#167172)
Co-authored-by: Joostlek <joostlek@outlook.com>
2026-04-08 12:10:22 +02:00
Franck NijhofandGitHub ddc00f6924 Extract functional utility template functions into a functional Jinja2 extension (#167357) 2026-04-06 12:48:15 +02:00
Franck NijhofandGitHub 2333e9e8b1 Extract serialization template functions into a serialization Jinja2 extension (#167332) 2026-04-04 10:08:54 +02:00
Franck NijhofandGitHub c8e2a2b520 Extract type casting template functions into a type cast Jinja2 extension (#167280) 2026-04-03 18:00:58 +02:00
Artur PragaczandGitHub dc5547d7b6 Unprefix entity name for template function (#166899) 2026-03-31 09:08:21 +02:00
Artur PragaczandGitHub a5f9c400cc Fix limited template unsupported lists (#166356) 2026-03-24 18:20:30 +01:00
Artur PragaczandGitHub 745dc0e183 Remove stale area entries from limited template unsupported lists (#166079) 2026-03-23 23:15:53 +01:00
Artur PragaczandGitHub 579dd6785d Add entity name template function (#166078) 2026-03-23 18:33:45 +01:00
e5f13b4126 Add state_attr_translated template filter and function (#165317)
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: piitaya <5878303+piitaya@users.noreply.github.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2026-03-19 17:21:43 +01:00
epenetandGitHub 1c59d846e3 Cleanup unnecessary brackets for except statements (core) (#162410) 2026-02-06 13:45:59 +01:00
Etienne C.andGitHub 43ced677e5 Get the polling state of a sensor from a template (#159900) 2026-01-08 12:03:45 +01:00
Ross PattersonandGitHub 38f4cf0575 Clean up docstring copied word typo (#159581) 2025-12-22 21:04:45 +01:00
Aarni KoskelaandGitHub 655a63c104 Add clamp/wrap/remap to template math functions (#154537) 2025-11-26 11:00:12 +01:00
Franck NijhofandGitHub 43f40c6f0e Extract issue template functions into an issues Jinja2 extension (#157116) 2025-11-23 19:14:46 +01:00
Franck NijhofandGitHub d97998e2e1 Extract date/time template functions into an datetime Jinja2 extension (#157042) 2025-11-23 11:47:49 +01:00
Franck NijhofandGitHub e5b2d44e8e Extract area template functions into an areas Jinja2 extension (#156629) 2025-11-21 17:56:16 +01:00
Franck NijhofandGitHub aefdf412b0 Extract device template functions into a devices Jinja2 extension (#156619) 2025-11-15 00:23:38 +01:00
25fbcbc68c Extract floor template functions into a floors Jinja2 extension (#156589)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-14 12:06:55 -05:00
f484b6df0d Extract label template functions into a label Jinja2 extension (#156439)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-14 11:04:31 +01:00
Franck NijhofandGitHub 78f26edc29 Extend base jinja2 extension with limited template errors (#156431) 2025-11-12 13:52:15 +01:00
Franck NijhofandGitHub af67a35b75 Extend base jinja2 extension with hass requirement and tests (#156403) 2025-11-11 22:34:08 +01:00