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

This commit is contained in:
J. Nick Koston
2025-07-29 08:55:41 +12:00
committed by GitHub
parent 85435e6b5f
commit 59d466a6c8
5 changed files with 104 additions and 25 deletions
+4
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);