Commit Graph

252 Commits

Author SHA1 Message Date
J. Nick Koston
75c952eaef Merge branch 'template_water_heater_onoff' into integration 2026-02-10 06:21:45 -06:00
J. Nick Koston
1b3f3c04b9 Use mutable globals in water heater test fixture
Use globals for away/is_on lambdas and sync them in set_action
so optimistic state changes persist across loop iterations.
2026-02-10 06:17:52 -06:00
J. Nick Koston
6410c6cf9b improve tests 2026-02-10 06:14:41 -06:00
J. Nick Koston
0503760af4 Add integration tests for toggling away and on/off state flags 2026-02-10 06:09:18 -06:00
J. Nick Koston
22b038f6a4 Import WaterHeaterFeature from aioesphomeapi instead of redefining locally 2026-02-10 05:47:46 -06:00
tronikos
1419ac8ad8 Merge branch 'dev' into template_water_heater_onoff 2026-02-09 13:03:50 -08:00
J. Nick Koston
e0712cc53b [scheduler] Make core timer ID collisions impossible with type-safe internal IDs (#13882)
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com>
2026-02-09 13:16:22 -06:00
J. Nick Koston
a6345eea08 Merge branch 'scheduler_uint32t_core_filters' into integration 2026-02-09 06:32:01 -06:00
J. Nick Koston
3d2b9641a4 [scheduler] Add integration test for internal vs numeric ID isolation
Verifies that NUMERIC_ID_INTERNAL and NUMERIC_ID are completely
independent matching namespaces — same uint32_t value on the same
component does not collide. Tests that cancelling one type does not
affect the other, and that string names also don't cross-match.
2026-02-09 06:05:13 -06:00
tronikos
2cf853d6a1 Merge branch 'dev' into template_water_heater_onoff 2026-02-09 02:04:15 -08:00
tronikos
0c510ff1e7 update 2026-02-08 22:09:08 -08:00
tronikos
2d22bd4951 fix 2026-02-08 21:35:29 -08:00
J. Nick Koston
5cb3af9e0e Merge branch 'hardening/api-varint-guard' into integration 2026-02-08 08:38:46 -06:00
J. Nick Koston
41fedaedb3 [udp] Eliminate per-loop heap allocation using std::span (#13838)
Co-authored-by: Clyde Stubbs <2366188+clydebarrow@users.noreply.github.com>
2026-02-08 08:26:47 -06:00
tronikos
9bc93415d8 fix 2026-02-07 03:07:09 -08:00
tronikos
1aa4891c83 fix 2026-02-07 01:44:43 -08:00
tronikos
52af92d4b5 Add On/Off and Away mode support to template platform
Implemented support for On/Off and Away modes in the template water heater
platform, including optimistic control and lambda-based state reporting.

Refactored the base 'WaterHeaterCall' to replace the 'state_' bitmask with
'optional<bool>' for 'on' and 'away' fields. This change was necessary to
enable partial (delta) updates. The previous bitmask implementation did not
distinguish between a field being "set to false" and "not set at all,"
causing unintended state resets (e.g., turning the device off when only
adjusting temperature).
2026-02-07 01:35:37 -08:00
J. Nick Koston
bd6d43de52 Merge branch 'ssd1306-progmem-tables' into integration 2026-02-06 21:28:11 +01:00
tronikos
eb7aa3420f Add target_temperature to the template water heater (#13661)
Co-authored-by: J. Nick Koston <nick@koston.org>
2026-02-06 21:23:42 +01:00
dependabot[bot]
4d05cd3059 Bump ruff from 0.14.14 to 0.15.0 (#13752)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@home-assistant.io>
2026-02-04 09:24:05 +00:00
J. Nick Koston
43b6e7962d Merge branch 'dependabot/pip/ruff-0.15.0' into integration 2026-02-04 09:31:37 +01:00
pre-commit-ci-lite[bot]
c05f0589fc [pre-commit.ci lite] apply automatic fixes 2026-02-04 08:22:15 +00:00
J. Nick Koston
d0017ded5b [template] Split TemplateSelect into TemplateSelectWithSetAction to save RAM (#13685)
Co-authored-by: clydebarrow <2366188+clydebarrow@users.noreply.github.com>
2026-02-03 11:48:31 +00:00
J. Nick Koston
aa6650c86d Merge remote-tracking branch 'upstream/dev' into integration 2026-02-03 01:25:44 +01:00
J. Nick Koston
1119003eb5 [core] Add missing uint32_t ID overloads for defer() and cancel_defer() (#13720) 2026-02-02 22:22:11 +01:00
J. Nick Koston
b628f0bf29 Merge branch 'template_select_trigger' into integration 2026-02-02 03:12:42 +01:00
J. Nick Koston
9dbcf1447b integration test 2026-02-02 02:45:43 +01:00
J. Nick Koston
83a77118bd Merge branch 'mqtt_enum_flash' into integration 2026-01-26 20:34:49 -10:00
J. Nick Koston
bc49174920 Add additional text_sensor filter tests (#13479) 2026-01-26 17:18:36 -10:00
J. Nick Koston
e5c6caab7e Merge branch 'idf_no_heap_alloc_url' into integration 2026-01-20 16:21:00 -10:00
polyfloyd
3c0f43db9e Add the max_delta filter (#12605)
Co-authored-by: clydebarrow <2366188+clydebarrow@users.noreply.github.com>
2026-01-21 10:58:47 +11:00
J. Nick Koston
86a1b4cf69 [select][fan] Use StringRef for on_value/on_preset_set triggers to avoid heap allocation (#13324) 2026-01-18 19:51:11 -10:00
J. Nick Koston
d0869fbc67 Merge branch 'sprintf_group' into integration 2026-01-18 19:06:45 -10:00
J. Nick Koston
baf2b0e3c9 [api] Fix truncation of Home Assistant attributes longer than 255 characters (#13348) 2026-01-18 18:23:11 -10:00
J. Nick Koston
4d4283bcfa [udp] Store addresses in flash instead of heap (#13330) 2026-01-17 15:50:23 -10:00
J. Nick Koston
055b315360 Merge branch 'udp_flash_strings' into integration 2026-01-17 13:10:45 -10:00
J. Nick Koston
c82cef3b64 [udp] Store addresses in flash instead of heap 2026-01-17 13:09:57 -10:00
J. Nick Koston
48c9380ec1 Merge branch 'string_ref_triggers' into integration 2026-01-17 11:11:32 -10:00
J. Nick Koston
caa86a4701 adl tests 2026-01-17 11:07:26 -10:00
J. Nick Koston
1a18462279 Merge branch 'string_ref_triggers' into integration 2026-01-17 10:58:54 -10:00
J. Nick Koston
f3226b108f make sure new stringref functions work 2026-01-17 08:42:56 -10:00
J. Nick Koston
83d164c213 make sure new stringref functions work 2026-01-17 08:42:16 -10:00
J. Nick Koston
18c3dd8af7 make sure new stringref functions work 2026-01-17 08:35:46 -10:00
J. Nick Koston
37025d62e0 [select][fan] Use StringRef for on_value/on_preset_set triggers to avoid heap allocation 2026-01-17 08:28:40 -10:00
J. Nick Koston
d5f557ad1c [scheduler] Eliminate heap allocations for std::string names and add uint32_t ID API (#13200) 2026-01-14 09:15:31 -05:00
J. Nick Koston
49cae5eda8 Merge branch 'scheduler_no_heap' into integration 2026-01-13 22:39:53 -10:00
J. Nick Koston
bf6d75fd5e fix 2026-01-13 22:08:57 -10:00
J. Nick Koston
c8fcc258c3 cleanup 2026-01-13 21:32:24 -10:00
J. Nick Koston
42f98ebc80 [scheduler] Eliminate heap allocations for std::string names and add uint32_t ID API 2026-01-13 20:16:59 -10:00
J. Nick Koston
b24dbf77e4 Merge remote-tracking branch 'upstream/dev' into integration 2026-01-08 21:01:17 -10:00