Commit Graph
14107 Commits
Author SHA1 Message Date
J. Nick Koston 2a80ba3e9e Merge remote-tracking branches 'upstream/sensor_or_filter_static_array', 'upstream/sensor_calibrate_linear_static_array', 'upstream/sensor_calibrate_polynomial_static_array', 'upstream/binary_sensor_autorepeat_static_array', 'upstream/binary_sensor_multiclick_static_array', 'upstream/text_sensor_substitute_static_array' and 'upstream/text_sensor_map_static_array' into sensor_value_list_static_array 2026-03-27 17:03:11 -10:00
J. Nick Koston 19e497cd61 Remove get_loop_component_start_time wrapper, use forward-declared App directly
The wrapper added a function call indirection on every filter invocation
that the compiler cannot inline without LTO. Forward-declaring Application
and App lets the template body call App.get_loop_component_start_time()
directly — the method is inline in application.h which is included by
main.cpp where the template is instantiated.
2026-03-27 16:58:49 -10:00
J. Nick Koston 711ba55756 Fix: inline ESPHOME_DEBUG_ASSERT to avoid include order issue 2026-03-27 16:27:52 -10:00
J. Nick Koston 4cba679469 Fix: inline ESPHOME_DEBUG_ASSERT to avoid include order issue 2026-03-27 16:27:50 -10:00
J. Nick Koston 327d0597af Fix: inline ESPHOME_DEBUG_ASSERT to avoid include order issue 2026-03-27 16:27:48 -10:00
J. Nick Koston 5d7ae5b3ce Fix: inline ESPHOME_DEBUG_ASSERT to avoid include order issue 2026-03-27 16:27:46 -10:00
J. Nick Koston 4eec3f5076 Fix: inline ESPHOME_DEBUG_ASSERT to avoid include order issue 2026-03-27 16:27:44 -10:00
J. Nick Koston 1a9c1d4844 Fix: inline ESPHOME_DEBUG_ASSERT to avoid include order issue 2026-03-27 16:27:42 -10:00
J. Nick Koston 1d8be72a44 Fix: inline ESPHOME_DEBUG_ASSERT to avoid include order issue 2026-03-27 16:27:40 -10:00
J. Nick Koston fa6df8ea2a Fix: inline ESPHOME_DEBUG_ASSERT to avoid include order issue 2026-03-27 16:27:38 -10:00
J. Nick Koston 3b01e65a2a Remove accidentally committed .gitignore 2026-03-27 16:24:35 -10:00
J. Nick Koston 7f5409214b Use init_array_from helper for optimal codegen
Uses memcpy for trivially copyable types, element-wise copy otherwise.
ESPHOME_DEBUG_ASSERT catches size mismatches in integration tests.
2026-03-27 16:14:59 -10:00
J. Nick Koston c4aed6f7e5 Use init_array_from helper for optimal codegen
Uses memcpy for trivially copyable types, element-wise copy otherwise.
ESPHOME_DEBUG_ASSERT catches size mismatches in integration tests.
2026-03-27 16:14:57 -10:00
J. Nick Koston a20b0a96b9 Use init_array_from helper for optimal codegen
Uses memcpy for trivially copyable types, element-wise copy otherwise.
ESPHOME_DEBUG_ASSERT catches size mismatches in integration tests.
2026-03-27 16:14:55 -10:00
J. Nick Koston 8b42629e3e Use init_array_from helper for optimal codegen
Uses memcpy for trivially copyable types, element-wise copy otherwise.
ESPHOME_DEBUG_ASSERT catches size mismatches in integration tests.
2026-03-27 16:14:53 -10:00
J. Nick Koston ae2a82edd6 Use init_array_from helper for optimal codegen
Uses memcpy for trivially copyable types, element-wise copy otherwise.
ESPHOME_DEBUG_ASSERT catches size mismatches in integration tests.
2026-03-27 16:14:51 -10:00
J. Nick Koston f8e144b23b Use init_array_from helper for optimal codegen
Uses memcpy for trivially copyable types, element-wise copy otherwise.
ESPHOME_DEBUG_ASSERT catches size mismatches in integration tests.
2026-03-27 16:14:49 -10:00
J. Nick Koston 1d2f11b990 Use init_array_from helper for optimal codegen
Uses memcpy for trivially copyable types, element-wise copy otherwise.
ESPHOME_DEBUG_ASSERT catches size mismatches in integration tests.
2026-03-27 16:14:47 -10:00
J. Nick Koston 494d431bf8 Use init_array_from helper for optimal codegen
Uses memcpy for trivially copyable types, element-wise copy otherwise.
ESPHOME_DEBUG_ASSERT catches size mismatches in integration tests.
2026-03-27 16:14:45 -10:00
J. Nick Koston c2c34d39e7 [text_sensor] Assert size before writing, not after 2026-03-27 15:55:56 -10:00
J. Nick Koston 787af59845 [text_sensor] Assert size before writing, not after 2026-03-27 15:55:29 -10:00
J. Nick Koston 3e7dcc6490 [binary_sensor] Assert size before writing, not after 2026-03-27 15:54:44 -10:00
J. Nick Koston f9c2d60b7d [binary_sensor] Assert size before writing, not after 2026-03-27 15:54:12 -10:00
J. Nick Koston 55963a6ea0 [sensor] Assert size before writing, not after 2026-03-27 15:53:18 -10:00
J. Nick Koston 4cb1164a01 [sensor] Assert size before writing, not after 2026-03-27 15:52:16 -10:00
J. Nick Koston 3d68920de0 [sensor] Assert size before writing, not after 2026-03-27 15:51:05 -10:00
J. Nick Koston 70a9c2f8b6 [sensor] Assert size before writing, not after 2026-03-27 15:49:57 -10:00
J. Nick Koston a28f331f73 [text_sensor] Replace truncation guard with ESPHOME_DEBUG_ASSERT 2026-03-27 15:48:10 -10:00
J. Nick Koston f47799a645 [text_sensor] Replace truncation guard with ESPHOME_DEBUG_ASSERT 2026-03-27 15:48:09 -10:00
J. Nick Koston 869bafe338 [binary_sensor] Replace truncation guard with ESPHOME_DEBUG_ASSERT 2026-03-27 15:48:07 -10:00
J. Nick Koston f8138eef77 [binary_sensor] Replace truncation guard with ESPHOME_DEBUG_ASSERT 2026-03-27 15:48:07 -10:00
J. Nick Koston aae1edda0d [sensor] Replace truncation guard with ESPHOME_DEBUG_ASSERT 2026-03-27 15:48:06 -10:00
J. Nick Koston f162c5acd3 [sensor] Replace truncation guard with ESPHOME_DEBUG_ASSERT 2026-03-27 15:48:05 -10:00
J. Nick Koston 8a93b0c1c0 [sensor] Replace truncation guard with ESPHOME_DEBUG_ASSERT 2026-03-27 15:48:04 -10:00
J. Nick Koston c8609af6ce [sensor] Replace truncation guard with ESPHOME_DEBUG_ASSERT 2026-03-27 15:47:56 -10:00
J. Nick Koston f1221602f4 [binary_sensor] Move deleted copy/move to public (clang-tidy modernize-use-equals-delete) 2026-03-27 15:26:24 -10:00
J. Nick Koston cef546c8d8 [binary_sensor] Move deleted copy/move to public (clang-tidy modernize-use-equals-delete) 2026-03-27 15:26:03 -10:00
J. Nick Koston df154189c4 [binary_sensor] Delete copy/move on MultiClickTriggerBase (pointer would dangle) 2026-03-27 15:06:25 -10:00
J. Nick Koston 115d84b2a7 [binary_sensor] Delete copy/move on AutorepeatFilterBase (pointer would dangle) 2026-03-27 15:05:19 -10:00
J. Nick Koston 5dc3291d3a Merge branch 'dev' into binary_sensor_autorepeat_static_array 2026-03-27 13:43:00 -10:00
J. Nick Koston 9fd267d606 Merge branch 'dev' into binary_sensor_multiclick_static_array 2026-03-27 13:42:31 -10:00
J. Nick Koston 27c609531d [text_sensor] Use std::array in MapFilter 2026-03-27 13:34:36 -10:00
J. Nick Koston f81e8946ed [binary_sensor] Use std::array in MultiClickTrigger 2026-03-27 13:34:35 -10:00
J. Nick Koston 83eb723c62 [binary_sensor] Use std::array in AutorepeatFilter 2026-03-27 13:33:46 -10:00
J. Nick Koston a2856cf87b [text_sensor] Use std::array in SubstituteFilter 2026-03-27 13:33:39 -10:00
J. Nick Koston e6b06551bc [sensor] Use std::array in ValueList/FilterOut/ThrottleWithPriority filters
Template ValueListFilter, FilterOutValueFilter, and ThrottleWithPriorityFilter
on N (set by code generation) to use std::array instead of FixedVector.

Non-template helpers value_list_matches_any() and get_loop_component_start_time()
keep shared logic in the .cpp to avoid per-instantiation flash duplication.
2026-03-27 13:33:19 -10:00
J. Nick Koston f10202d9ad [sensor] Use std::array in CalibrateLinearFilter 2026-03-27 13:32:20 -10:00
J. Nick Koston 7137f615e2 [sensor] Use std::array in CalibratePolynomialFilter 2026-03-27 13:32:13 -10:00
J. Nick Koston 5133a49f83 [sensor] Use std::array in OrFilter 2026-03-27 13:32:10 -10:00
Keith Burzinski f6c63c62e4 [tmp117] Code clean-up (#15260) 2026-03-27 17:59:26 -05:00