mirror of
https://github.com/boneIO-eu/esphome.git
synced 2026-04-10 20:50:02 +02:00
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:
@@ -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:
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user