[nextion] Fix clang-tidy error on Zephyr for HTTPClient - #12538
Conversation
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
To use the changes from this PR as an external component, add the following to your ESPHome configuration YAML file: external_components:
- source: github://pr#12538
components: [nextion]
refresh: 1h(Added by the PR bot) |
|
👋 Hi there! This PR modifies 1 file(s) with codeowners. @edwardtfn, @SenexCrenshaw - As codeowner(s) of the affected files, your review would be appreciated! 🙏 Note: Automatic review request may have failed, but you're still welcome to review. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #12538 +/- ##
=======================================
Coverage 72.66% 72.66%
=======================================
Files 53 53
Lines 11193 11193
Branches 1517 1517
=======================================
Hits 8133 8133
Misses 2667 2667
Partials 393 393 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Memory Impact AnalysisComponents:
This analysis runs automatically when components change. Memory usage is measured from a representative test configuration. |
|
Thanks |
What does this implement/fix?
Fixes clang-tidy error on Zephyr caused by #9429. The PR changed the preprocessor guard from
#ifdef USE_ARDUINO ... #elif defined(USE_ESP_IDF)to#ifdef USE_ESP32 ... #else, but the#elsebranch catches Zephyr whereHTTPClientdoesn't exist.This changes
#elseto#elif defined(USE_ARDUINO)to match the include guards at the top of the file which correctly use#elif defined(USE_ESP8266).Error:
Types of changes
Related issue or feature (if applicable):
Pull request in esphome-docs with documentation (if applicable):
Test Environment
Example entry for
config.yaml:# N/A - clang-tidy fix onlyChecklist:
tests/folder).If user exposed functionality or configuration variables are added/changed: