mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 08:55:36 +00:00
95ee73e07fa902b0ff821d79472755f458e1185c
Replace uint32_t entity_string_packed_ with 3 separate uint8_t fields (device_class_idx_, uom_idx_, icon_idx_) placed after the 1-byte EntityFlags struct. These fill the 3 padding bytes that the compiler would insert anyway for alignment, saving 4 bytes per entity with zero layout overhead. The set_entity_strings(uint32_t) API is preserved — it unpacks into the individual fields.
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
545 MiB
Languages
C++
60.1%
Python
39.3%
C
0.3%
JavaScript
0.2%
