mirror of
https://github.com/esphome/esphome.git
synced 2026-10-01 08:50:22 +00:00
[rp2] Enable the PlatformIO precompiled header (#19824)
This commit is contained in:
@@ -16,7 +16,6 @@ from esphome.const import (
|
||||
PLATFORM_ESP32,
|
||||
PLATFORM_LN882X,
|
||||
PLATFORM_NRF52,
|
||||
PLATFORM_RP2,
|
||||
PLATFORM_RTL87XX,
|
||||
)
|
||||
from esphome.helpers import write_file_if_changed
|
||||
@@ -54,7 +53,6 @@ PCH_SCRIPT_EXCLUDED_PLATFORMS = frozenset(
|
||||
PLATFORM_ESP32,
|
||||
PLATFORM_LN882X,
|
||||
PLATFORM_NRF52,
|
||||
PLATFORM_RP2,
|
||||
PLATFORM_RTL87XX,
|
||||
}
|
||||
)
|
||||
|
||||
@@ -109,7 +109,7 @@ def test_pch_checksum_tracks_closure_content(tmp_path: Path) -> None:
|
||||
assert base != pch.pch_checksum(tmp_path, ["root.h"], ["id"])
|
||||
|
||||
|
||||
@pytest.mark.parametrize("platform", ["esp8266"])
|
||||
@pytest.mark.parametrize("platform", ["esp8266", "rp2"])
|
||||
def test_pch_script_enabled(platform: str, monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
CORE.data[KEY_CORE] = {KEY_TARGET_PLATFORM: platform}
|
||||
assert pch.pch_script_enabled()
|
||||
|
||||
Reference in New Issue
Block a user