mirror of
https://github.com/esphome/esphome.git
synced 2026-09-19 11:08:38 +00:00
0fc366444176be62915681c1fda0b7af9f391576
The protobuf code generator already parses all enum definitions and knows every enum's maximum value. Use this to automatically apply the max_value < 128 optimization to all enum fields, eliminating the need for manual annotation. Since every enum in api.proto has max < 128, all 58 enum field size calculations now use constant arithmetic instead of calling varint size functions. Builds on #15424 which introduced the max_value optimization.
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
600 MiB
Languages
C++
55.7%
Python
43.7%
C
0.3%
JavaScript
0.2%
