mirror of
https://github.com/esphome/esphome.git
synced 2026-09-01 02:26:01 +00:00
bd1dd68d6bb9ccfc8305ae9313f53aadc5afab6a
The TEMPLATABLE_VALUE C++ fields are typed `int`, but Python codegen was passing `cg.int32` (`int32_t`). On ESP-IDF/xtensa toolchains where `int32_t` is `long`, the codegen-generated lambda's function-pointer type `int32_t (*)(...)` does not match `int (*)(...)`, causing `TemplatableFn` to select its deprecated casting-trampoline overload and emit a `-Wdeprecated-declarations` warning at every call site. Use `cg.int_` so the lambda's return type matches the field exactly.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
584 MiB
Languages
C++
56.1%
Python
43.3%
C
0.3%
JavaScript
0.2%
