mirror of
https://github.com/esphome/esphome.git
synced 2026-10-22 05:46:12 +00:00
The session layer sends keep-alives and reports whether the peer can be reached, including after it restarts or a reliability layer below loses data. The encryption layer encrypts and checks each packet with XXTEA, with an optional rolling code against replays. Components that a layer needs, such as binary_sensor, are loaded only when it is configured. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
417 B
Python
12 lines
417 B
Python
import esphome.codegen as cg
|
|
from tests.testing_helpers import ComponentManifestOverride
|
|
|
|
|
|
def override_manifest(manifest: ComponentManifestOverride) -> None:
|
|
async def to_code_testing(config: object) -> None:
|
|
cg.add_define("USE_PACKET_INTERFACE_BASIC_SESSION")
|
|
cg.add_define("USE_PACKET_INTERFACE_HDLC")
|
|
cg.add_define("USE_PACKET_INTERFACE_XXTEA")
|
|
|
|
manifest.to_code = to_code_testing
|