8000
Skip to content

[wifi] Check for esp32_hosted on no wifi variants - #10528

Merged
jesserockz merged 1 commit into
esphome:devfrom
swoboda1337:p4_wifi_check
Sep 3, 2025
Merged

[wifi] Check for esp32_hosted on no wifi variants#10528
jesserockz merged 1 commit into
esphome:devfrom
swoboda1337:p4_wifi_check

Conversation

@swoboda1337
Copy link
Copy Markdown
Member

What does this implement/fix?

Check for esp32_hosted on no wifi variants

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Code quality improvements to existing code or addition of tests
  • Other

Related issue or feature (if applicable):

Pull request in esphome-docs with documentation (if applicable):

  • esphome/esphome-docs#

Test Environment

  • ESP32
  • ESP32 IDF
  • ESP8266
  • RP2040
  • BK72xx
  • RTL87xx
  • nRF52840

Example entry for config.yaml:

# Example config.yaml

Checklist:

  • The code change is tested and works locally.
  • Tests have been added to verify that the new code works (under tests/ folder).

If user exposed functionality or configuration variables are added/changed:

@github-actions
github-actions Bot commented Sep 2, 2025
Copy link
Copy Markdown
Contributor

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#10528
    components: [wifi]
    refresh: 1h

(Added by the PR bot)

@codecov-commenter
codecov-commenter commented Sep 2, 2025
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.56%. Comparing base (ed48282) to head (b1d7160).
⚠️ Report is 9 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #10528      +/-   ##
==========================================
+ Coverage   60.46%   60.56%   +0.09%     
==========================================
  Files          51       51              
  Lines       10422    10440      +18     
  Branches     1390     1390              
==========================================
+ Hits         6302     6323      +21     
+ Misses       3762     3758       -4     
- Partials      358      359       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@swoboda1337
swoboda1337 force-pushed the p4_wifi_check branch 2 times, most recently from 50a5b22 to ec3fd47 Compare September 2, 2025 22:49
Comment thread esphome/components/wifi/__init__.py Outdated
Comment on lines +182 to +183
integrations = CORE.loaded_integrations
if variant in NO_WIFI_VARIANTS and "esp32_hosted" not in integrations:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is in FINAL_VALIDATE_SCHEMA, it should use fv.full_config.get()

Suggested change
integrations = CORE.loaded_integrations
if variant in NO_WIFI_VARIANTS and "esp32_hosted" not in integrations:
if variant in NO_WIFI_VARIANTS and "esp32_hosted" not in fv.full_config.get():

@esphome
esphome Bot marked this pull request as draft September 3, 2025 08:38
@esphome
esphome Bot commented Sep 3, 2025
Copy link
Copy Markdown
Contributor

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@swoboda1337
swoboda1337 marked this pull request as ready for review September 3, 2025 11:30
@esphome
esphome Bot requested a review from jesserockz September 3, 2025 11:30
@jesserockz
jesserockz merged commit 0ab65c2 into esphome:dev Sep 3, 2025
25 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ESP32-P4 unable to build firmware with wifi enabled

3 participants

0