Skip to content

[schema-gen] fix Windows: ensure UTF-8 encoding when reading component files#13952

Merged
swoboda1337 merged 1 commit intoesphome:devfrom
glmnet:fix-schema-gen-windows-encoding
Feb 12, 2026
Merged

[schema-gen] fix Windows: ensure UTF-8 encoding when reading component files#13952
swoboda1337 merged 1 commit intoesphome:devfrom
glmnet:fix-schema-gen-windows-encoding

Conversation

@glmnet
Copy link
Member

@glmnet glmnet commented Feb 12, 2026

What does this implement/fix?

Fix for windows using wrong code page by default cannot load files.

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):

  • fixes

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:

@esphome esphome bot added bugfix small-pr PR < 30 lines labels Feb 12, 2026
@codecov-commenter
Copy link

codecov-commenter commented Feb 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.11%. Comparing base (c9c125a) to head (40caead).
⚠️ Report is 12 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #13952      +/-   ##
==========================================
+ Coverage   74.07%   74.11%   +0.03%     
==========================================
  Files          55       55              
  Lines       11588    11588              
  Branches     1577     1577              
==========================================
+ Hits         8584     8588       +4     
+ Misses       2601     2598       -3     
+ Partials      403      402       -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 added this to the 2026.2.0b2 milestone Feb 12, 2026
@swoboda1337 swoboda1337 merged commit 7b251dc into esphome:dev Feb 12, 2026
33 checks passed
@swoboda1337
Copy link
Member

Thanks

@github-actions github-actions bot locked and limited conversation to collaborators Feb 14, 2026
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.

4 participants