Home IO Control
ESPHome add-on for IO-Homecontrol devices
Loading...
Searching...
No Matches
platform_lr1121_controls.h File Reference

Hub-level LR1121 firmware-update entities: the transceiver-flash button and the bootloader-rewrite arming switch. More...

#include "esphome/components/button/button.h"
#include "esphome/components/switch/switch.h"
#include "hub_core.h"
#include "platform_entity_base.h"
Include dependency graph for platform_lr1121_controls.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Detailed Description

Hub-level LR1121 firmware-update entities: the transceiver-flash button and the bootloader-rewrite arming switch.

Both are hub-level, not device-bound — there is no io_device_id to bind to, they target the hub's own radio (created from the home_io_control: block for the shared reason, see HubBoundEntity in platform_entity_base.h). They are created dynamically from the presence of home_io_control.lr1121_firmware_update: (the button, behind IOHOME_LR1121_FIRMWARE_UPDATE) and its bootloader: sub-block (the switch, behind IOHOME_LR1121_BOOTLOADER_UPDATE); see __init__.py's _create_lr1121_firmware_update() / _create_lr1121_bootloader_update(). The bootloader define is only ever added from inside the firmware-update path, so it implies IOHOME_LR1121_FIRMWARE_UPDATE and the two guards nest.

Definition in file platform_lr1121_controls.h.