J. Nick Koston
20d9ae699c
[logger] Conditionally compile runtime tag-specific log levels for performance ( #11004 )
2025-10-06 09:59:52 +13:00
b8cee477fe
[esp32] Use arduino as an idf component ( #10647 )
...
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
Co-authored-by: J. Nick Koston <nick@koston.org >
2025-09-17 17:23:34 -05: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
d64e4d3c49
[ruff] Enable FURB rules for code modernization ( #9896 )
2025-07-26 20:54:03 +12:00
Jesse Hills
6d37b916dc
[logger] Don't allow `logger.log actions without configuring the logger` ( #9821 )
2025-07-26 16:23:36 +12:00
J. Nick Koston
ffebd30033
[ruff] Enable SIM rules and fix code simplification violations ( #9872 )
2025-07-25 18:26:08 +12:00
4bd0561ba3
[logger] fix on_message ( #9642 )
...
Co-authored-by: Samuel Sieb <samuel@sieb.net >
Co-authored-by: J. Nick Koston <nick@koston.org >
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-07-17 17:08:18 -10:00
5d9cba3dce
[nrf52, core] nrf52 core based on zephyr ( #7049 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
Co-authored-by: Samuel Sieb <samuel-github@sieb.net >
Co-authored-by: Tomasz Duda <tomaszduda23@gmai.com >
Co-authored-by: J. Nick Koston <nick@koston.org >
2025-07-16 13:00:21 +12:00
J. Nick Koston
440de12e3f
Don't compile unnecessary platform files (e.g. ESP8266 files on ESP32) ( #9354 )
2025-07-08 09:04:41 +12:00
lamauny and Jesse Hills
d86f319d66
Add support for LN882X Family (with LibreTiny) ( #8954 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-06-30 16:20:36 +12:00
J. Nick Koston
59889a6286
Reduce Logger memory usage by optimizing variable sizes ( #9161 )
2025-06-23 14:06:02 +12:00
Jonathan Swoboda and Kuba Szczodrzyński
aa180b9581
Bump ESP32 Arduino version to 3.1.3 ( #8604 )
...
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl >
2025-06-19 08:16:25 +12:00
Jonathan Swoboda
ca0037d076
[esp32, logger, core] Add initial c5 support ( #8895 )
2025-05-26 13:33:41 +12:00
Jesse Hills and Clyde Stubbs
926b42ba1c
[logger] Fix options in select ( #8875 )
...
Co-authored-by: Clyde Stubbs <2366188+clydebarrow@users.noreply.github.com >
2025-05-23 09:33:38 +10:00
787f4860db
[esp32, logger] Add initial P4 support ( #8439 )
...
Co-authored-by: Clyde Stubbs <2366188+clydebarrow@users.noreply.github.com >
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-05-22 13:22:01 +12:00
J. Nick Koston
0b77cb1d16
Logger Recursion Guard per Task on ESP32 ( #8765 )
2025-05-15 21:36:28 +12:00
J. Nick Koston and Jesse Hills
dded81d622
Fix ESP32 API Disconnects Caused by Concurrent Logger Writes ( #8736 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-05-13 07:03:34 +12:00
Jonathan Swoboda
46b6dcdfbf
[logger] Fix bug causing global log level to be overwritten ( #8248 )
2025-02-13 19:56:08 +00:00
Clyde Stubbs and Jesse Hills
ff7d232ee6
[logger] Add runtime level select ( #8222 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-02-10 15:53:26 +13:00
Keith Burzinski
5a103543c4
[esp32] Set logger default interface for C6 ( #8126 )
2025-01-22 23:00:40 +00:00
tomaszduda23
2a8424a7f2
[code-quality] Organise logger imports ( #7205 )
2024-08-07 19:32:06 +12:00
Jesse Hills
ccab57fc58
[logger] Fix defines for development ( #6870 )
...
* [logger] Fix defines for development
* Set debugging flags for rp2040
2024-06-06 23:30:49 -05:00
Clyde Stubbs
0bc645ded7
Fix build failures on host platform caused by #6167 ( #6338 )
...
* Fix build failures for logger component on host platform
* Add climits header
* Restore logger functionality on host
* Install libsodium in ci
2024-03-09 21:08:58 -06:00
de2d5a65b5
Separate logger implementations for each hardware platform into different files ( #6167 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
Co-authored-by: Keith Burzinski <kbx81x@gmail.com >
2024-03-05 10:52:52 +13:00
Keith Burzinski
082d9fcf0e
ESP32-C3 USB_CDC fixes ( #6069 )
2024-01-11 08:05:34 +09:00
Clyde Stubbs and Keith Burzinski
300343ae24
ESP32-S3 and ESP-IDF don't play well with USB_CDC and need USB_SERIAL_JTAG ( #5929 )
...
Co-authored-by: Keith Burzinski <kbx81x@gmail.com >
2023-12-15 11:24:52 +11:00
8c37066ed9
[Logger] ESP32 S3 serial logger ( #4853 )
...
* Add support for ESP32 S3 logger.
* fix default
* Remove cpp & h changes to combine with PR #4658
* Not enough attention to details.
* Add build flag
* Validation fix
* Fix validation for real this time
---------
Co-authored-by: Your Name <you@example.com >
Co-authored-by: Keith Burzinski <kbx81x@gmail.com >
2023-12-13 22:47:31 -06:00
Jesse Hills and Keith Burzinski
777cdb1c21
Allow use of CDC/JTAG loggers on esp32 variants with Arduino ( #4658 )
...
* Allow use of CDC/JTAG loggers on esp32 variants with Arduino
* Only on s2/s3
* Separate C3 from S2/S3
* C code builds & runs correctly, still needs work though
* Works on S2
* It works!
* Remove unnecessary header
---------
Co-authored-by: Keith Burzinski <kbx81x@gmail.com >
2023-12-13 22:24:16 -06:00
Austin
fa0dcac2c7
Initial ESP32-H2 Support ( #5498 )
2023-10-09 07:34:12 +13:00
a9630ac847
Support for LibreTiny platform (RTL8710, BK7231 & other modules) ( #3509 )
...
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl >
Co-authored-by: Sam Neirinck <git@samneirinck.com >
Co-authored-by: David Buezas <dbuezas@users.noreply.github.com >
Co-authored-by: Stroe Andrei Catalin <catalin2402@gmail.com >
Co-authored-by: Sam Neirinck <github@samneirinck.be >
Co-authored-by: Péter Sárközi <xmisterhu@gmail.com >
Co-authored-by: Hajo Noerenberg <hn@users.noreply.github.com >
2023-09-05 10:16:08 +12:00
Austin and Stijn Tintel
fe7893d1b3
Support for ESP32-C2 & ESP32-C6 ( #4377 )
...
Co-authored-by: Stijn Tintel <stijn@linux-ipv6.be >
2023-08-21 09:42:03 +12:00
Jesse Hills and Otto winter
c835b67bac
Add host target platform ( #4783 )
...
Co-authored-by: Otto winter <otto@otto-winter.com >
2023-05-10 11:38:18 +12:00
Jesse Hills
de79171815
RP2040 uart support ( #3990 )
2022-11-07 10:01:40 +13:00
Jesse Hills and Paulus Schoutsen
6153bcc6ad
Initial Support for RP2040 platform ( #3284 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2022-10-20 16:50:39 +13:00
Unai and Jesse Hills
3a3d97dfa7
Add SERIAL_JTAG/CDC logger option for ESP-IDF platform for ESP32-S2/S3/C3 ( #3105 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2022-05-10 13:28:22 +12:00
Guillermo Ruffino
05dc97099a
New vscode schema gen ( #3336 )
2022-04-03 19:30:22 +12:00
Oxan van Leeuwen and Otto winter
ced11bc707
Autodetect ESP32 variant ( #2530 )
...
Co-authored-by: Otto winter <otto@otto-winter.com >
2021-10-18 13:36:18 +13:00
Oxan van Leeuwen
6bbb5e9b56
Disallow using UART2 for logger on ESP-32 variants that lack it ( #2510 )
2021-10-14 09:21:43 +13:00
Otto Winter and Jesse Hills
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
dependabot[bot] and Otto winter
dbb195691b
Bump pylint from 2.10.2 to 2.11.1 ( #2334 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Otto winter <otto@otto-winter.com >
2021-09-19 19:22:28 +02:00
Stefan Agner
e5366dbbe7
Add deassert_rts_dtr option to force RTS/DTR low when using miniterm ( #2089 )
2021-08-11 07:55:36 +12:00
Oxan van Leeuwen
4c4099966a
Fix invalid escape sequences in regex ( #1814 )
2021-07-05 10:04:18 +12: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
Maurice Makaay and Maurice Makaay
7665a220a0
Fix error when using %% in printf format. ( #1713 )
...
For printf formatting, a check is done to see if the number of
arguments matches the number of printf formatting placeholders.
The escape code `%%` that is used for representing a literal `%`
is also counted as a placeholder, but no argument will be provided
for that one.
This makes it impossible to use something like `("%f%%", percentage)`
in the code. In such case, one gets the error:
`Found 2 printf-patterns (%f, %%), but 1 args were given!`
This commit fixes this behavior by omitting the `%%` from the matches.
Co-authored-by: Maurice Makaay <mmakaay1@xs4all.net >
2021-05-11 12:15:29 -03: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
Otto Winter
4996967c79
Add CODEOWNERS mechanism ( #1199 )
2020-07-25 15:57:18 +02: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
Nikolay Vasilchuk and Otto Winter
e4f055597c
Logger on_message trigger ( #729 )
...
* on_message
* Lint fix
* Lint fix (2)
* Lint fix (<3)
* Replace cg.int_ with int
* Revert
* Removed strdup
Co-authored-by: Otto Winter <otto@otto-winter.com >
2019-10-24 14:19:33 +02:00
Otto Winter
21bbafb63d
Captive portal fixes ( #766 )
...
* Enable MDNS logs comment
* Work around ESP8266 mDNS broken for AP
See also https://github.com/esp8266/Arduino/issues/6114
* Enable captive_portal in AP-only mode
Fixes https://github.com/esphome/issues/issues/671
* Make ESP32 connecting faster
See also https://github.com/espressif/arduino-esp32/pull/2989
* Format
2019-10-18 14:46:44 +02:00
Otto Winter
904a0b26ea
Make logger string memory usage more efficient ( #641 )
...
* Make logger string storing more efficient
* Lint
2019-06-16 19:14:24 +02:00