mirror of
https://github.com/esphome/esphome.git
synced 2026-02-18 15:35:59 -07:00
[schema-gen] fix Windows: ensure UTF-8 encoding when reading component files (#13952)
This commit is contained in:
committed by
GitHub
parent
8a08c688f6
commit
7b251dcc31
@@ -369,7 +369,7 @@ def get_logger_tags():
|
||||
"api.service",
|
||||
]
|
||||
for file in CORE_COMPONENTS_PATH.rglob("*.cpp"):
|
||||
data = file.read_text()
|
||||
data = file.read_text(encoding="utf-8")
|
||||
match = pattern.search(data)
|
||||
if match:
|
||||
tags.append(match.group(1))
|
||||
|
||||
Reference in New Issue
Block a user