mirror of
https://github.com/esphome/esphome.git
synced 2026-09-20 11:38:48 +00:00
len known
This commit is contained in:
@@ -1718,7 +1718,7 @@ void APIConnection::on_home_assistant_state_response(const HomeAssistantStateRes
|
||||
memcpy(state_buf, msg.state, msg.state_len);
|
||||
}
|
||||
state_buf[msg.state_len] = '\0';
|
||||
it.callback(StringRef(state_buf));
|
||||
it.callback(StringRef(state_buf, msg.state_len));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user