1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-17 23:35:47 +00:00

Optimize Application area_ from std::string to const char* (#9085)

This commit is contained in:
J. Nick Koston
2025-06-14 22:46:40 -05:00
committed by GitHub
parent 98e2684107
commit 78e3c6333f
2 changed files with 5 additions and 5 deletions

View File

@@ -153,7 +153,7 @@ bool MQTTComponent::send_discovery_() {
if (node_friendly_name.empty()) {
node_friendly_name = node_name;
}
const std::string &node_area = App.get_area();
std::string node_area = App.get_area();
JsonObject device_info = root.createNestedObject(MQTT_DEVICE);
const auto mac = get_mac_address();