ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
homeassistant.h File Reference

Go to the source code of this file.

Namespaces

namespace  esphome
 
namespace  esphome::homeassistant
 

Functions

template<typename C >
bool esphome::homeassistant::emit_utf8 (uint32_t code_point, C &on_char)
 Emit the UTF-8 encoding of a code point. Rejects NUL, which would end the item early.
 
template<typename C , typename O >
bool esphome::homeassistant::parse_python_list (StringRef src, C &&on_char, O &&on_item)
 Walk a list attribute as Home Assistant sends it: the Python repr of a list of strings, such as ‘['Low’, "It's high", 'caf\xe9'], or of an enum, such as[<ColorMode.HS: 'hs'>]`, where the quoted value stands for the item.