Fix build warnings

This commit is contained in:
Marcin Biernacik
2026-05-21 13:13:44 +02:00
committed by GitHub
parent 48a0c5df36
commit d962a57b2b

View File

@@ -33,10 +33,10 @@ text_sensor:
entity_category: diagnostic entity_category: diagnostic
icon: 'mdi:ip-network' icon: 'mdi:ip-network'
lambda: |- lambda: |-
if (id(eth).get_ip_addresses().empty()) return "Unset"; if (id(eth).get_ip_addresses().empty()) return {"Unset"};
char buf[IP_ADDRESS_BUFFER_SIZE]; char buf[esphome::network::IP_ADDRESS_BUFFER_SIZE];
id(eth).get_ip_addresses()[0].str_to(buf); id(eth).get_ip_addresses()[0].str_to(buf);
return buf; return {buf};
update_interval: 60s update_interval: 60s
script: script: