mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 11:26:39 +00:00
[wifi] Default LN882x power save to none, as on BK72xx and RTL87xx (#20170)
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user