J. Nick Koston and Jesse Hills
1446e7174a
[core] Reduce action framework argument copies by 83% ( #11704 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-11-05 01:23:24 +00:00
Jesse Hills
09d89000ad
[core] Remove deprecated schema constants ( #11591 )
2025-10-29 00:14:02 -05:00
J. Nick Koston
3c18558003
Optimize stateless lambdas to use function pointers ( #11551 )
2025-10-28 08:06:22 +13:00
J. Nick Koston and Jesse Hills
77203f0cb4
[text_sensor] Optimize filters with FixedVector (1.6KB flash savings) ( #11423 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-10-21 03:24:51 +00:00
J. Nick Koston
85959e3004
[sensor,text_sensor,binary_sensor] Optimize filter parameters with std::initializer_list ( #11426 )
2025-10-21 15:47:13 +13:00
J. Nick Koston
250b94d113
[text_sensor] Convert LOG_TEXT_SENSOR macro to function to reduce flash usage ( #10884 )
2025-09-26 12:10:31 +12:00
J. Nick Koston
086f1982fa
[core] Use get_device_class_ref() in entity platform logging to avoid string allocations ( #10531 )
2025-09-03 14:26:53 +12:00
J. Nick Koston
83fbd77c4a
[core] Use get_icon_ref() in entity platform logging to avoid string allocations ( #10530 )
2025-09-03 14:23:46 +12:00
J. Nick Koston
d1276dc6df
[core] Replace magic coroutine priority numbers with self-documenting CoroPriority enum ( #10518 )
2025-09-02 21:41:50 +00:00
J. Nick Koston
296442d8f1
[core] Fix compilation errors when platform sections have no entities ( #10023 )
2025-08-02 13:59:20 -10:00
Keith Burzinski
f5f0a01a85
[text_sensor] Add support for default filters ( #9936 )
2025-07-29 11:35:40 +12:00
J. Nick Koston and Jesse Hills
f3c0c0c00c
Remove legacy unique_id field from entities ( #9022 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-07-16 04:56:49 +00:00
b18ff48b4a
[API] Sub devices and areas ( #8544 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
Co-authored-by: J. Nick Koston <nick+github@koston.org >
2025-06-25 12:03:41 +00:00
Jesse Hills
882bfc79c7
Remove `std::` prefix as not all platforms have access yet. ( #9095 )
2025-06-16 12:55:23 +12:00
J. Nick Koston
cb019fff9a
Optimize memory usage by lazy-allocating raw callbacks in sensors ( #9077 )
2025-06-15 15:28:15 +12:00
J. Nick Koston
4305c44440
Reduce entity memory usage by eliminating field shadowing and bit-packing ( #9076 )
2025-06-15 15:21:55 +12:00
J. Nick Koston
3411e45a0a
Reserve memory for component and platform vectors ( #9042 )
2025-06-11 22:05:42 +12:00
Jesse Hills
6f8ee65919
[text_sensor] Fix schema generation ( #8773 )
2025-05-13 06:34:26 +00:00
Jesse Hills
dcd786d21c
[config] Deprecate other *_SCHEMA constants ( #8748 )
2025-05-12 14:43:38 -05:00
Jesse Hills
8399d894c1
[config] Use `cv.UNDEFINED instead of adhoc _UNDEF` objects ( #8725 )
2025-05-09 08:18:52 +00:00
RFDarter and Jesse Hills
86a34f4b17
[web_server] v3 entity grouping ( #6833 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2024-10-07 15:52:26 +13:00
tomaszduda23
c348efa401
[code-quality] Organise base entities imports ( #7208 )
2024-08-07 15:49:51 +12:00
RFDarter and Jesse Hills
a7fc1a6298
[web_server] add entity sorting for v3 ( #6445 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2024-05-30 13:54:20 +12:00
Jesse Hills
7733781e09
Housecleaning: Use walrus operator in text_sensor ( #6559 )
2024-04-17 02:51:33 -05:00
dougiteixeira and Jesse Hills
323849c821
Add device class support to text sensor ( #6202 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2024-02-26 11:29:39 +13:00
Clyde Stubbs and Jesse Hills
f3ef05f5c3
host platform: improvements and bugfixes ( #6137 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2024-02-07 14:24:06 +13:00
Fabian and Your Name
cb2fcaa9b1
EntityBase Name can stay in flash. (#4594 )
...
* `EntityBase`can stay in flash.
* Trying to please the CI.
---------
Co-authored-by: Your Name <you@example.com >
2023-03-28 06:38:56 +00:00
Oxan van Leeuwen
afc1c83af4
Mark unique_id() override as deprecated ( #4538 )
2023-03-09 00:06:20 +00:00
Regev Brody
12bef16d54
add SUB_TEXT_SENSOR macro ( #4448 )
2023-02-19 19:11:24 +00:00
Jesse Hills
9273e3775b
Add vector includes ( #4080 )
2022-11-24 13:12:55 +13:00
Jesse Hills
b184b01600
Remove a bunch of unnecessary pylint disabling ( #4079 )
2022-11-24 11:09:19 +13:00
Samuel Sieb
2f18ae00c5
fix to_lower filter ( #4015 )
2022-11-11 07:40:53 +13:00
RoboMagus
989b7be99b
Pass optional args to 'new_Pvariable' when creating new entities ( #3690 )
2022-08-08 07:31:50 +12:00
Maurice Makaay and Maurice Makaay
0d1028be2e
Cleanup deprecated EntityBase::hash_base() ( #3525 )
...
Co-authored-by: Maurice Makaay <mmakaay1@xs4all.net >
2022-06-08 09:13:11 +12:00
Jesse Hills
7a242bb4ed
Binary Sensor codegen tidyup ( #3217 )
2022-02-18 10:39:59 +13:00
Jesse Hills
69856286e8
Text sensor schema generator similar to sensor ( #3172 )
2022-02-08 17:23:45 +13:00
Oxan van Leeuwen and Jesse Hills
80d03a631e
Force braces around multi-line statements ( #3094 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2022-01-25 08:56:36 +13:00
Oxan van Leeuwen
b3fb35783e
Set text sensor state property to filter output ( #2893 )
2021-12-13 15:21:09 +13:00
Oxan van Leeuwen
607601b3a4
Enable a bunch of clang-tidy checks ( #2149 )
2021-12-02 09:03:51 +13:00
Oxan van Leeuwen
b5f660398c
Add map filter for text sensors ( #2761 )
2021-11-26 09:35:33 +13:00
Jesse Hills
3c0414c420
Add Entity categories for Home Assistant ( #2636 )
2021-11-08 07:24:52 +13:00
Paul Monigatti and Oxan van Leeuwen
471b82f727
EntityBase Refactor ( #2418 )
...
* Renamed Nameable to EntityBase (cpp)
* Renamed NAMEABLE_SCHEMA to ENTITY_BASE_SCHEMA (Python)
* Renamed cg.Nameable to cg.EntityBase (Python)
* Remove redundant use of CONF_NAME from esp32_touch
* Remove redundant use of CONF_NAME from mcp3008
* Updated test
* Moved EntityBase from Component.h and Component.cpp
* Added icon property to EntityBase
* Added CONF_ICON to ENTITY_BASE_SCHEMA and added setup_entity function to cpp_helpers
* Added MQTT component getters for icon and disabled_by_default
* Lint
* Removed icon field from MQTT components
* Code generation now uses setup_entity to setENTITY_BASE_SCHEMA fields
* Removed unused import
* Added cstdint include
* Optimisation: don't set icon if it is empty
* Remove icon from NumberTraits and SelectTraits
* Removed unused import
* Integration and Total Daily Energy sensors now inherit icons from their parents during code generation
* Minor comment correction
* Removed redundant icon-handling code from sensor, switch, and text_sensor
* Update esphome/components/tsl2591/tsl2591.h
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl >
* Added icon property to binary sensor, climate, cover, and fan component tests
* Added icons for Binary Sensor, Climate, Cover, Fan, and Light to API
* Consolidated EntityBase fields in MQTT components
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl >
2021-10-10 10:37:05 +02:00
Oxan van Leeuwen
5b0fbbaada
Replace std::move() with const references where possible ( #2421 )
...
* Replace std::move() with const references where possible
* Fix formatting
2021-09-30 16:25:08 +02:00
WeekendWarrior1
3dfc8d4291
String manipulation filters for text sensors ( #2393 )
...
* initial text sensor filter POC
* fixed verbose logging
* add append, prepend, substitute filters
* add to lower, get to upper working without dummy
* clang lint
* more linting...
* std::move append and prepend filters
* fix verbose filter::input logging
* value.c_str() in input print
* lambda filter verbose log fix
* correct log tag, neaten to upper and to lower
* add on_raw_value automation/trigger
2021-09-29 23:25:06 +02:00
Oxan van Leeuwen and Otto winter
d594a6fcbc
Store strings only used for logging in flash ( #2274 )
...
Co-authored-by: Otto winter <otto@otto-winter.com >
2021-09-13 09:48:52 +02:00
Jesse Hills and Otto Winter
93796491af
Allow entities to be disabled by default in HA ( #2113 )
...
Co-authored-by: Otto Winter <otto@otto-winter.com >
2021-08-10 13:45:31 +12:00
Stefan Agner
501f88ca86
Avoid non-const globals and enable clang-tidy check ( #1892 )
2021-06-11 08:19:44 +12:00
Otto Winter
360effcb72
Activate some clang-tidy checks ( #1884 )
2021-06-10 13:04:40 +02:00
aebad04c0b
Convert core components to async-def coroutine syntax ( #1658 )
...
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com >
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-05-23 22:10:30 +02:00
Guillermo Ruffino
69879920eb
add-black ( #1593 )
...
* Add black
Update pre commit
Update pre commit
add empty line
* Format with black
2021-03-07 16:03:16 -03:00