mirror of
https://github.com/esphome/esphome.git
synced 2026-10-03 09:46:03 +00:00
Guard the session start against a missing key, reword the warning, and let the wizard use the key for OTA
This commit is contained in:
@@ -452,7 +452,7 @@ def test_encryption_offer_codegen(
|
||||
assert defines_present <= defines
|
||||
assert not (defines_absent & defines)
|
||||
encrypted = "USE_OTA_ENCRYPTION" in defines_present
|
||||
assert ("set_noise_psk(" in main_cpp) is encrypted
|
||||
assert ("esphome_esphomeotacomponent_id->set_noise_psk(" in main_cpp) is encrypted
|
||||
assert ("set_auth_password(" in main_cpp) is ("USE_OTA_PASSWORD" in defines_present)
|
||||
# The noise transport source compiles only when the define is set
|
||||
assert FILTER_SOURCE_FILES() == ([] if encrypted else ["ota_esphome_noise.cpp"])
|
||||
|
||||
Reference in New Issue
Block a user