J. Nick Koston
c956b33e93
Add comment noting shift correctness is verified by integration test
2026-03-06 11:02:35 -10:00
J. Nick Koston
86dd579dea
Remove internal shift constants from unit tests
...
Tests now verify packed values via comment strings and non-zero
checks rather than decoding individual bit positions. This removes
the coupling to internal bit layout constants.
2026-03-06 11:00:19 -10:00
J. Nick Koston
54a8f558d6
Convert finalize tests to end-to-end through public API
...
Tests now go through _setup_entity_impl + setup_device_class/
setup_unit_of_measurement + finalize_entity_strings using real
CONF_* keys instead of internal _KEY_* constants.
2026-03-06 09:51:26 -10:00
J. Nick Koston
c37f1481ce
Derive entity category names from cv.ENTITY_CATEGORIES and cleanup
...
- Remove hardcoded _ENTITY_CATEGORY_NAMES dict, derive from cv.ENTITY_CATEGORIES keys
- Remove redundant local import re (already at top level)
- Remove last setup_test_environment noqa line
2026-03-06 09:46:28 -10:00
J. Nick Koston
7117ded6b6
[core] Pack entity flags into configure_entity_() and protect setters
...
Move set_internal(), set_disabled_by_default(), set_entity_category(),
and set_device() to protected on EntityBase. These were codegen-only
setters never intended for runtime use.
internal, disabled_by_default, and entity_category are now packed into
the existing configure_entity_() uint32 parameter alongside string
indices, eliminating up to 3 separate function calls per entity.
set_device() is renamed to set_device_() per protected naming convention
and remains a separate call (pointer can't be packed).
Entity category integer mapping is derived from cv.ENTITY_CATEGORIES
to stay in sync with the C++ enum automatically.
2026-03-06 09:35:30 -10:00
J. Nick Koston
fd19bb4aa3
Merge remote-tracking branch 'upstream/dev' into configure_entity
...
# Conflicts:
# esphome/core/entity_base.h
2026-03-06 08:40:31 -10:00
J. Nick Koston and Copilot
8a915dcbbe
[core] Move device class strings to PROGMEM on ESP8266 ( #14443 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-03-06 08:34:27 -10:00
J. Nick Koston
6b53ccc85a
make it safer
2026-03-06 07:39:49 -10:00
J. Nick Koston
79d7795c07
Merge branch 'dev' into configure_entity
2026-03-06 07:33:40 -10:00
J. Nick Koston
a16b8fc0ac
[rp2040] Fix Pico W LED pin and auto-generate board definitions for arduino-pico 5.5.x ( #14528 )
2026-03-06 07:00:31 -10:00
J. Nick Koston and Copilot
74e4b69654
[core] Replace Application name/friendly_name std::string with StringRef ( #14532 )
...
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com >
2026-03-06 06:58:13 -10:00
J. Nick Koston
07e51886f3
[core] Move entity icon strings to PROGMEM on ESP8266 ( #14437 )
2026-03-06 06:57:52 -10:00
J. Nick Koston and Claude Opus 4.6
42fa6ef818
[core] Merge set_name + set_entity_strings into configure_entity
...
Every entity generated two codegen calls:
entity->set_name("Name", hash);
entity->set_entity_strings(packed);
Merge these into a single configure_entity(name, hash, packed) call
to reduce generated code size. For a config with 50+ entities this
eliminates 50+ function calls from the generated setup() function.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-03 11:47:14 -10:00
J. Nick Koston
1f1b20f4fe
[core] Pack entity string properties into PROGMEM-indexed uint8_t fields ( #14171 )
2026-03-03 07:03:24 -10:00
J. Nick Koston
a1d91ac779
[core] Compile-time detection of loop() overrides ( #14405 )
2026-03-02 06:59:23 -10:00
J. Nick Koston
82da4935b6
[core] Auto-wrap static strings in PROGMEM on ESP8266 via TemplatableValue ( #13885 )
2026-03-02 06:57:08 -10:00
Copilot and jesserockz
77a7cbcffd
Use cached files on network errors in external_files ( #14055 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: jesserockz <3060199+jesserockz@users.noreply.github.com >
2026-03-02 11:41:20 -05:00
J. Nick Koston
48b5cae6c4
[api] Use StringRef for user service string arguments ( #13974 )
2026-03-02 10:32:44 +13:00
J. Nick Koston
067d773aac
[core] Make register_component protected, remove runtime checks ( #14371 )
2026-02-28 07:19:55 -10:00
J. Nick Koston
d5c9c56fdf
[platformio] Add exponential backoff and session reset to download retries ( #14191 )
2026-02-21 19:41:43 -06:00
tomaszduda23
48ba007c22
[nrf52] print line number after crash in logs ( #14165 )
2026-02-21 14:16:20 -05:00
J. Nick Koston and Claude Opus 4.6
d29288547e
[core] Use constexpr for PROGMEM arrays ( #14127 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-19 18:54:33 -06:00
Jonathan Swoboda and Claude Opus 4.6
9cd7b0b32b
[external_components] Clean up incomplete clone on failed ref fetch ( #14051 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-18 18:09:33 +00:00
J. Nick Koston
1c60efa4b6
[ota] Use secrets module for OTA authentication cnonce ( #13863 )
2026-02-09 08:30:49 -06:00
J. Nick Koston
5370687001
[wizard] Use secrets module for fallback AP password generation ( #13864 )
2026-02-09 03:25:41 -06:00
Jonathan Swoboda and Claude Opus 4.5
8e461db301
[ota] Fix CLI upload option shown when only http_request platform configured ( #13784 )
...
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com >
2026-02-06 04:09:48 -05:00
J. Nick Koston
be44d4801f
[esp32] Reduce Arduino build size by 44% and build time by 36% ( #13623 )
2026-02-05 10:52:43 +01:00
dependabot[bot] and J. Nick Koston
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
Jonathan Swoboda and Claude Opus 4.5
da947d060f
[wizard] Use API encryption key instead of deprecated password ( #13634 )
...
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com >
2026-02-02 19:20:24 -05:00
Clyde Stubbs
9dcb469460
[core] Simplify generation of Lambda during to_code() ( #13533 )
2026-01-31 12:18:30 +11:00
David Woodhouse and pre-commit-ci-lite[bot]
823b5ac1ab
[ch423] Add CH423 I/O expander component ( #13079 )
...
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2026-01-29 18:16:15 -05:00
J. Nick Koston
123ee02d39
[ota] Improve error message when device closes connection without responding ( #13562 )
2026-01-26 17:13:18 -10:00
Jonathan Swoboda and Claude Opus 4.5
1996bc425f
[core] Fix state leakage and module caching when processing multiple configurations ( #13368 )
...
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-19 14:46:24 -05:00
J. Nick Koston
b7dbda497a
[core] Improve log timestamp accuracy by batching serial reads ( #12750 )
2026-01-07 08:28:31 -10:00
J. Nick Koston
39526e5360
[analyze-memory] Add RAM symbol analysis by component ( #13040 )
2026-01-07 08:24:44 -10:00
J. Nick Koston
ac42102320
[core] Auto-replace / in entity names with Unicode fraction slash during deprecation period ( #13016 )
2026-01-06 07:36:01 -10:00
Clyde Stubbs
71940acc49
[esp32_ble] Remove requirement for configured network ( #12891 )
2026-01-04 22:37:44 +00:00
J. Nick Koston
3cc6810be5
[core] Remove object_id RAM storage - no longer in hot path after #12627 ( #12631 )
2026-01-02 15:46:01 -10:00
J. Nick Koston
c6713eaccb
[web_server] Fix URL collisions with UTF-8 names and sub-devices ( #12627 )
2026-01-02 13:07:11 -10:00
J. Nick Koston
63464a13c3
[core] Fix incremental build failures when adding components on ESP32-Arduino ( #12745 )
2025-12-29 16:57:22 -10:00
J. Nick Koston
f238f93312
[core] Move comment to PROGMEM on ESP8266 ( #12554 )
2025-12-22 21:37:51 +00:00
9de7df7b5b
Add build info to image ( #12425 )
...
Co-authored-by: J. Nick Koston <nick+github@koston.org >
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
Co-authored-by: J. Nick Koston <nick@koston.org >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-18 00:06:52 +00:00
Javier Peletier and J. Nick Koston
9f2693ead5
[core] Packages refactor and conditional package inclusion (package refactor part 1) ( #11605 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
2025-12-10 00:59:58 +01:00
Jesse Hills
7fd79fdded
[esp32] Change imports to use esp32 only, not .const ( #12243 )
2025-12-05 09:53:08 -05:00
Thomas Rupprecht and Jonathan Swoboda
22803ef54b
[esp32] Sort variants in situ ( #10410 )
...
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com >
2025-12-03 20:48:11 -05:00
623cdac689
[tests] Add testing of command line substitutions ( #12210 )
...
Co-authored-by: J. Nick Koston <nick+github@koston.org >
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com >
2025-12-03 12:36:35 -05:00
Javier Peletier and J. Nick Koston
ab60ae092d
[tests] Allow substitution tests to run independently for debugging ( #12224 )
...
Co-authored-by: J. Nick Koston <nick+github@koston.org >
2025-12-02 16:17:24 -06:00
J. Nick Koston
101103c666
[core] Add RAM strings and symbols analysis to analyze-memory command ( #12161 )
2025-12-02 10:02:09 -06:00
29be1423f5
[core] Filter noisy platformio log messages ( #12218 )
...
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
2025-12-02 08:59:50 -05:00
2b7695ba3f
[core] Fix clean all windows ( #12217 )
...
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
2025-12-01 12:40:56 -05:00