remove batch
This commit is contained in:
@@ -313,6 +313,13 @@ class APIConnection : public APIServerConnection {
|
||||
|
||||
std::string get_client_combined_info() const { return this->client_combined_info_; }
|
||||
|
||||
// Info about an encoded message
|
||||
struct MessageInfo {
|
||||
uint16_t type;
|
||||
uint16_t size;
|
||||
bool encoded;
|
||||
};
|
||||
|
||||
protected:
|
||||
// Helper function to fill common entity fields
|
||||
template<typename ResponseT> static void fill_entity_info_base_(esphome::EntityBase *entity, ResponseT &response) {
|
||||
@@ -471,13 +478,6 @@ class APIConnection : public APIServerConnection {
|
||||
ListEntitiesIterator list_entities_iterator_;
|
||||
int state_subs_at_ = -1;
|
||||
|
||||
// Info about an encoded message
|
||||
struct MessageInfo {
|
||||
uint16_t type;
|
||||
uint16_t size;
|
||||
bool encoded;
|
||||
};
|
||||
|
||||
// Function type that encodes a message directly to buffer
|
||||
using MessageCreator = std::function<MessageInfo(EntityBase *, ProtoWriteBuffer &, uint32_t max_size)>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user