Say why the OTA password should go

This commit is contained in:
J. Nick Koston
2026-09-05 12:10:46 +02:00
parent b4c6a40593
commit 69870a8801
2 changed files with 8 additions and 7 deletions
@@ -357,7 +357,7 @@ def test_password_with_api_key_warns(caplog: pytest.LogCaptureFixture) -> None:
try:
with caplog.at_level(logging.WARNING):
ota_esphome_final_validate({})
assert any("only guards plaintext" in r.message for r in caplog.records)
assert any("wastes flash and RAM" in r.message for r in caplog.records)
finally:
fv.full_config.reset(token)
@@ -379,7 +379,7 @@ def test_password_without_static_api_key_no_warning(
try:
with caplog.at_level(logging.WARNING):
ota_esphome_final_validate({})
assert not any("only guards plaintext" in r.message for r in caplog.records)
assert not any("wastes flash and RAM" in r.message for r in caplog.records)
finally:
fv.full_config.reset(token)