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

Schema, validation and code generation for home_io_control: lr1121_firmware_update:. More...

Go to the source code of this file.

Namespaces

namespace  home_io_control
namespace  home_io_control.lr1121_update_codegen

Functions

 home_io_control.lr1121_update_codegen.validate_lr1121_firmware_source (value, *, expect_loader=False)
 home_io_control.lr1121_update_codegen.validate_checksum_md5 (value)
 home_io_control.lr1121_update_codegen._validate_lr1121_bootloader_block (config)
 home_io_control.lr1121_update_codegen.validate_lr1121_firmware_update (config)
 home_io_control.lr1121_update_codegen._cached_http_fetch (cache_dir)
 home_io_control.lr1121_update_codegen._render_lr1121_image_header (image, array_name, words_name, version_name)
 home_io_control.lr1121_update_codegen._render_lr1121_firmware_header (image)
 home_io_control.lr1121_update_codegen._render_lr1121_bootloader_loader_header (image)
 home_io_control.lr1121_update_codegen.create_lr1121_firmware_update (config, var)
 home_io_control.lr1121_update_codegen._create_lr1121_bootloader_update (bootloader_config, config, var, cache_dir)

Variables

 home_io_control.lr1121_update_codegen._LOGGER = logging.getLogger(__name__)
 home_io_control.lr1121_update_codegen.LR1121_BOOTLOADER_SCHEMA
 home_io_control.lr1121_update_codegen.LR1121_FIRMWARE_UPDATE_SCHEMA

Detailed Description

Schema, validation and code generation for home_io_control: lr1121_firmware_update:.

Validates the source:/checksum_md5: shorthand at schema time, then in to_code() fetches the image (cached), verifies it with lr1121_firmware.py and renders it into a generated C++ header, together with the update button and, for the bootloader: sub-block, the loader image and its arming switch.

Definition in file lr1121_update_codegen.py.