mirror of
https://github.com/esphome/esphome.git
synced 2026-09-24 13:34:07 +00:00
[select] Add zero-copy support for API select commands (#12329)
This commit is contained in:
@@ -902,7 +902,7 @@ uint16_t APIConnection::try_send_select_info(EntityBase *entity, APIConnection *
|
||||
}
|
||||
void APIConnection::select_command(const SelectCommandRequest &msg) {
|
||||
ENTITY_COMMAND_MAKE_CALL(select::Select, select, select)
|
||||
call.set_option(msg.state);
|
||||
call.set_option(reinterpret_cast<const char *>(msg.state), msg.state_len);
|
||||
call.perform();
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user