Merge pull request #37 from maqlec/new_esp_compatibility

fix: update lambda return type for hostname text sensor to std::strin…
This commit is contained in:
Pawel
2025-11-30 11:05:16 +01:00
committed by GitHub
4 changed files with 4 additions and 4 deletions

View File

@@ -76,7 +76,7 @@ text_sensor:
id: hostname id: hostname
entity_category: diagnostic entity_category: diagnostic
lambda: |- lambda: |-
return id(eth).get_use_address(); return std::string(id(eth).get_use_address());
update_interval: 5min update_interval: 5min
binary_sensor: binary_sensor:

View File

@@ -76,7 +76,7 @@ text_sensor:
id: hostname id: hostname
entity_category: diagnostic entity_category: diagnostic
lambda: |- lambda: |-
return id(eth).get_use_address(); return std::string(id(eth).get_use_address());
update_interval: 5min update_interval: 5min
binary_sensor: binary_sensor:

View File

@@ -76,7 +76,7 @@ text_sensor:
id: hostname id: hostname
entity_category: diagnostic entity_category: diagnostic
lambda: |- lambda: |-
return id(eth).get_use_address(); return std::string(id(eth).get_use_address());
update_interval: 5min update_interval: 5min
binary_sensor: binary_sensor:

View File

@@ -137,7 +137,7 @@ text_sensor:
id: hostname id: hostname
entity_category: diagnostic entity_category: diagnostic
lambda: |- lambda: |-
return id(eth).get_use_address(); return std::string(id(eth).get_use_address());
update_interval: 5min update_interval: 5min
binary_sensor: binary_sensor: