[wifi] Default LN882x power save to none, as on BK72xx and RTL87xx (#20170)

This commit is contained in:
J. Nick Koston
2026-10-05 10:26:22 -05:00
committed by GitHub
parent 5be0aca6d2
commit 4258b226a4
3 changed files with 16 additions and 2 deletions
+1 -1
View File
@@ -514,7 +514,7 @@ CONFIG_SCHEMA = cv.All(
rp2="light",
bk72xx="none",
rtl87xx="none",
ln882x="light",
ln882x="none",
): cv.enum(WIFI_POWER_SAVE_MODES, upper=True),
cv.Optional(CONF_FAST_CONNECT, default=False): _fast_connect_schema,
cv.Optional(CONF_USE_ADDRESS): cv.string_strict,
@@ -0,0 +1,12 @@
---
esphome:
name: test
ln882x:
board: generic-ln882h
wifi:
ssid: test
password: testtest
ap:
ssid: fallback
@@ -6,7 +6,9 @@ from pathlib import Path
import pytest
@pytest.mark.parametrize("config_file", ["bare.yaml", "defaults.yaml"])
@pytest.mark.parametrize(
"config_file", ["bare.yaml", "defaults.yaml", "bare_ln882x.yaml"]
)
def test_default_values_are_not_emitted(
generate_main: Callable[[str | Path], str],
component_config_path: Callable[[str], Path],