mirror of
https://github.com/esphome/esphome.git
synced 2025-10-29 22:24:26 +00:00
[tests] Fix millis() ambiguity in component tests with gps component
This commit is contained in:
@@ -6,14 +6,14 @@ sensor:
|
||||
- platform: template
|
||||
id: template_humidity
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
if (esphome::millis() > 10000) {
|
||||
return 0.6;
|
||||
}
|
||||
return 0.0;
|
||||
- platform: template
|
||||
id: template_temperature
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
if (esphome::millis() > 10000) {
|
||||
return 42.0;
|
||||
}
|
||||
return 0.0;
|
||||
|
||||
Reference in New Issue
Block a user