J. Nick Koston
0fa9704675
[core] Use nullptr defaults in status_set_error/warning to reduce flash usage
2025-07-27 11:25:42 -10:00
Clyde Stubbs
0e2520e4c0
[core] Fix format error in log printf ( #9911 )
2025-07-26 08:02:02 -10:00
J. Nick Koston
b7ce8c116b
[core] Centralize component setup logging to reduce flash usage ( #9885 )
2025-07-25 19:27:03 +00:00
J. Nick Koston
544cf9b9c0
[core] Fix component state documentation and add state helper method ( #9824 )
2025-07-24 15:22:42 +12:00
Clyde Stubbs
f9534fbd5d
[interval] Fix startup behaviour ( #9793 )
2025-07-24 08:03:36 +10:00
J. Nick Koston
158a3b2835
[scheduler] Fix cancellation of timers with empty string names ( #9641 )
2025-07-18 14:20:35 +12:00
J. Nick Koston
e012fd5b32
Add runtime_stats component for performance debugging and analysis ( #9386 )
...
Co-authored-by: Keith Burzinski <kbx81x@gmail.com >
2025-07-16 13:13:51 +12:00
Jesse Hills
d3342d6a1a
[component] Fix `is_ready` flag when loop disabled ( #9501 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
2025-07-15 07:20:18 +00:00
J. Nick Koston
f5c8595a46
Follow logging best practices by removing redundant component prefix ( #9481 )
2025-07-14 00:41:49 +00:00
J. Nick Koston
e2de6ee29d
Reduce core RAM usage by 40 bytes with static initialization optimizations ( #9340 )
2025-07-08 08:28:14 +12:00
J. Nick Koston
86e7013f40
Add const char overload for Component::defer() ( #9324 )
2025-07-04 21:52:12 -05:00
J. Nick Koston
03566c34ed
Reduce Component memory usage by 40% (8 bytes per component) ( #9278 )
2025-07-02 13:43:40 +12:00
J. Nick Koston
140ca070a2
Optimize scheduler string storage to eliminate heap allocations ( #9251 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-06-30 15:40:36 +12:00
J. Nick Koston
0b1b8f05e1
Reduce loop enable/disable log spam by using very verbose level ( #9267 )
2025-06-30 11:49:31 +12:00
J. Nick Koston
8ba22183b9
Add enable_loop_soon_any_context() for thread and ISR-safe loop enabling ( #9127 )
2025-06-19 13:30:41 +12:00
J. Nick Koston
2e534ce41e
Reduce CPU overhead by allowing components to disable their loop() ( #9089 )
2025-06-18 21:49:25 +12:00
J. Nick Koston
c17a3b6fcc
Reduce Component memory usage by 20 bytes per component ( #9080 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-06-16 09:34:37 +12:00
J. Nick Koston
28d11553e0
Reduce Component blocking threshold memory usage by 2 bytes per component ( #9081 )
2025-06-16 09:33:38 +12:00
J. Nick Koston
374c33e8dc
Optimize Component and Application state storage from uint32_t to uint8_t ( #9082 )
2025-06-15 14:48:53 +12:00
J. Nick Koston
574aabdede
Reduce number of calls to fetch time in the main loop ( #8804 )
2025-05-19 07:48:57 +12:00
Stanislav Meduna
6de6a0c82c
Only warn if the component blocked for a longer time than the last time ( #8064 )
2025-05-01 11:57:01 +12:00
Clyde Stubbs
9637ef35bd
[component] Show error message for failed component ( #8478 )
2025-04-07 09:26:34 +00:00
Keith Burzinski
12cdeca48a
[various] clang-tidy fixes for #7822 ( #7874 )
2024-11-28 11:23:20 +13:00
Jesse Hills
63fc8ab10a
[core] Const-ify some Component fields ( #6831 )
2024-05-30 02:59:15 -05:00
Clyde Stubbs
97ff87b718
Remove misleading tag/line in messages ( #6495 )
2024-04-08 16:13:12 +12:00
Clyde Stubbs
2c67d83976
Include "Failed" status in config log. ( #6482 )
2024-04-04 23:21:56 -05:00
Clyde Stubbs
774cbde1b6
Show component warnings and errors in the log; ( #6400 )
2024-03-20 12:56:43 +13:00
Edward Firmo
0b9a022ef6
Shows component operation time in ms ( #6388 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2024-03-18 10:01:25 +13:00
Clyde Stubbs
8267b3274c
Enable networking and some other components on host platform ( #6114 )
2024-01-19 10:10:23 +09:00
De Cock Xavier
a33b8abce8
Feat/component poller suspend ( #5423 )
2023-10-03 09:25:13 +13:00
Jesse Hills
fd9cca565b
Log component long time message at warning level ( #5048 )
2023-07-04 15:02:53 +12:00
Fabian
3773c385c7
Ensure component is ready before update. ( #4523 )
...
Co-authored-by: Your Name <you@example.com >
2023-03-07 04:16:42 +00:00
Dan Jackson
029ac75a04
set_retry: add retries remaining parameter to the provided function ( #4251 )
2023-01-18 14:26:32 +13:00
Jadson Santos
41b5cb06d3
New platform ethernet_info from component text_sensor ( #3811 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2022-10-19 13:44:48 +13:00
Oxan van Leeuwen
7da12a878f
Enable readability-redundant-member-init check ( #3097 )
2022-01-23 20:34:43 +13:00
Oxan van Leeuwen
607601b3a4
Enable a bunch of clang-tidy checks ( #2149 )
2021-12-02 09:03:51 +13:00
Martin
448e1690aa
Add retry handler ( #2721 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl >
2021-11-18 11:59:40 +13:00
Paul Monigatti
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
Otto Winter
ac0d921413
ESP-IDF support and generic target platforms ( #2303 )
...
* Socket refactor and SSL
* esp-idf temp
* Fixes
* Echo component and noise
* Add noise API transport support
* Updates
* ESP-IDF
* Complete
* Fixes
* Fixes
* Versions update
* New i2c APIs
* Complete i2c refactor
* SPI migration
* Revert ESP Preferences migration, too complex for now
* OTA support
* Remove echo again
* Remove ssl again
* GPIOFlags updates
* Rename esphal and ICACHE_RAM_ATTR
* Make ESP32 arduino compilable again
* Fix GPIO flags
* Complete pin registry refactor and fixes
* Fixes to make test1 compile
* Remove sdkconfig file
* Ignore sdkconfig file
* Fixes in reviewing
* Make test2 compile
* Make test4 compile
* Make test5 compile
* Run clang-format
* Fix lint errors
* Use esp-idf APIs instead of btStart
* Another round of fixes
* Start implementing ESP8266
* Make test3 compile
* Guard esp8266 code
* Lint
* Reformat
* Fixes
* Fixes v2
* more fixes
* ESP-IDF tidy target
* Convert ARDUINO_ARCH_ESPxx
* Update WiFiSignalSensor
* Update time ifdefs
* OTA needs millis from hal
* RestartSwitch needs delay from hal
* ESP-IDF Uart
* Fix OTA blank password
* Allow setting sdkconfig
* Fix idf partitions and allow setting sdkconfig from yaml
* Re-add read/write compat APIs and fix esp8266 uart
* Fix esp8266 store log strings in flash
* Fix ESP32 arduino preferences not initialized
* Update ifdefs
* Change how sdkconfig change is detected
* Add checks to ci-custom and fix them
* Run clang-format
* Add esp-idf clang-tidy target and fix errors
* Fixes from clang-tidy idf round 2
* Fixes from compiling tests with esp-idf
* Run clang-format
* Switch test5.yaml to esp-idf
* Implement ESP8266 Preferences
* Lint
* Re-do PIO package version selection a bit
* Fix arduinoespressif32 package version
* Fix unit tests
* Lint
* Lint fixes
* Fix readv/writev not defined
* Fix graphing component
* Re-add all old options from core/config.py
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-09-20 11:47:51 +02:00
Oxan van Leeuwen
1e8e471dec
Introduce call_dump_config() indirection ( #2325 )
2021-09-20 11:16:31 +02:00
Oxan van Leeuwen
0cd24c629a
Compatibility with clang-tidy v14 ( #2272 )
2021-09-13 09:35:55 +02:00
Sergey V. DUDANOV
4e120a291e
Midea support v2 ( #2188 )
2021-09-09 09:10:02 +12:00
Otto Winter
1b89174558
Store source package in Component for debugging ( #2070 )
2021-08-24 06:49:19 +12:00
Jesse Hills
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
Jesse Hills
a70a205ace
Improv - BLE WiFi provisioning ( #1807 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2021-06-08 11:56:21 +12:00
Otto Winter
412351fd1e
Use inclusive terminology ( #1137 )
2020-07-14 18:45:42 +02:00
Otto Winter
ae784dc74c
Fix CI
2019-12-07 18:53:20 +01:00
Otto Winter
056c72d50d
Drop Python 2 Support ( #793 )
...
* Remove Python 2 support
* Remove u-strings
* Remove docker symlinks
* Remove from travis
* Update requirements
* Upgrade flake8/pylint
* Fixes
* Manual
* Run pyupgrade
* Lint
* Remove base_int
* Fix
* Update platformio_api.py
* Update component.cpp
2019-12-07 18:28:55 +01:00