|
ESPHome 2026.11.0-dev
|
A key and value from codegen; on ESP8266 the table and its strings are in flash. More...
#include <homeassistant_service.h>
Static Public Member Functions | |
| template<typename F > | |
| static constexpr HomeAssistantField | from_lambda (const char *key, F) |
| template<typename F > | |
| static std::string | call_lambda (const Ts &...x) |
Data Fields | |
| const char * | key |
| const char * | value |
| std::string(* | fn )(const Ts &...) |
A key and value from codegen; on ESP8266 the table and its strings are in flash.
The value is the constant value, or the result of fn when it is set.
Definition at line 33 of file homeassistant_service.h.
|
inlinestatic |
Definition at line 41 of file homeassistant_service.h.
|
inlinestaticconstexpr |
Definition at line 38 of file homeassistant_service.h.
| std::string(* esphome::api::HomeAssistantField< Ts >::fn) (const Ts &...) |
Definition at line 36 of file homeassistant_service.h.
| const char* esphome::api::HomeAssistantField< Ts >::key |
Definition at line 34 of file homeassistant_service.h.
| const char* esphome::api::HomeAssistantField< Ts >::value |
Definition at line 35 of file homeassistant_service.h.