mirror of
https://github.com/esphome/esphome.git
synced 2026-09-11 23:37:34 +00:00
7b9d3b4c331d989bc9bb475173a04e2cfac82348
Add a back-pointer to PacketTransport in the Sensor and BinarySensor structs so the state callback lambdas can capture only [&sensor] (one pointer) instead of [this, &sensor] (two pointers). This brings the capture size within the Callback inline threshold (sizeof(void*)), avoiding a heap allocation per callback registration.
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
591 MiB
Languages
C++
55.8%
Python
43.6%
C
0.3%
JavaScript
0.2%
