1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-17 23:35:47 +00:00

[api] Remove unnecessary string copies from optional access (#9897)

This commit is contained in:
J. Nick Koston
2025-07-28 10:55:41 -10:00
committed by GitHub
parent 85435e6b5f
commit 59d466a6c8
5 changed files with 104 additions and 25 deletions

View File

@@ -298,6 +298,10 @@ class APIConnection : public APIServerConnection {
// Helper function to handle authentication completion
void complete_authentication_();
#ifdef USE_API_HOMEASSISTANT_STATES
void process_state_subscriptions_();
#endif
// Non-template helper to encode any ProtoMessage
static uint16_t encode_message_to_buffer(ProtoMessage &msg, uint8_t message_type, APIConnection *conn,
uint32_t remaining_size, bool is_single);