[select] Return StringRef from current_option() (#13095)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2026-01-11 17:40:43 -10:00
1 parent eeeae53f76
commit 23f9f70b71
12 files changed
+68 -23

No files matched your search

+1 -1
View File
@@ -914,7 +914,7 @@ uint16_t APIConnection::try_send_select_state(EntityBase *entity, APIConnection
bool is_single) {
auto *select = static_cast<select::Select *>(entity);
SelectStateResponse resp;
resp.state = StringRef(select->current_option());
resp.state = select->current_option();
resp.missing_state = !select->has_state();
return fill_and_encode_entity_state(select, resp, SelectStateResponse::MESSAGE_TYPE, conn, remaining_size, is_single);
}