diff --git a/tests/components/absolute_humidity/common.yaml b/tests/components/absolute_humidity/common.yaml index 026f88654f..f6b1c02886 100644 --- a/tests/components/absolute_humidity/common.yaml +++ b/tests/components/absolute_humidity/common.yaml @@ -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; diff --git a/tests/components/analog_threshold/common.yaml b/tests/components/analog_threshold/common.yaml index 26c401b92a..7d9dc4bc9b 100644 --- a/tests/components/analog_threshold/common.yaml +++ b/tests/components/analog_threshold/common.yaml @@ -3,7 +3,7 @@ sensor: id: template_sensor name: Template Sensor lambda: |- - if (millis() > 10000) { + if (esphome::millis() > 10000) { return 42.0; } return 0.0; diff --git a/tests/components/bang_bang/common.yaml b/tests/components/bang_bang/common.yaml index 5882025191..dc7798e2f2 100644 --- a/tests/components/bang_bang/common.yaml +++ b/tests/components/bang_bang/common.yaml @@ -10,7 +10,7 @@ sensor: - platform: template id: template_sensor1 lambda: |- - if (millis() > 10000) { + if (esphome::millis() > 10000) { return 42.0; } else { return 0.0; diff --git a/tests/components/binary_sensor_map/common.yaml b/tests/components/binary_sensor_map/common.yaml index c054022583..71f4c0158e 100644 --- a/tests/components/binary_sensor_map/common.yaml +++ b/tests/components/binary_sensor_map/common.yaml @@ -2,21 +2,21 @@ binary_sensor: - platform: template id: bin1 lambda: |- - if (millis() > 10000) { + if (esphome::millis() > 10000) { return true; } return false; - platform: template id: bin2 lambda: |- - if (millis() > 20000) { + if (esphome::millis() > 20000) { return true; } return false; - platform: template id: bin3 lambda: |- - if (millis() > 30000) { + if (esphome::millis() > 30000) { return true; } return false; diff --git a/tests/components/combination/common.yaml b/tests/components/combination/common.yaml index 0e5d512d08..bb05fa375b 100644 --- a/tests/components/combination/common.yaml +++ b/tests/components/combination/common.yaml @@ -2,14 +2,14 @@ sensor: - platform: template id: template_temperature1 lambda: |- - if (millis() > 10000) { + if (esphome::millis() > 10000) { return 0.6; } return 0.0; - platform: template id: template_temperature2 lambda: |- - if (millis() > 20000) { + if (esphome::millis() > 20000) { return 0.8; } return 0.0; diff --git a/tests/components/duty_time/common.yaml b/tests/components/duty_time/common.yaml index 761d10f16a..ffe62ec7fc 100644 --- a/tests/components/duty_time/common.yaml +++ b/tests/components/duty_time/common.yaml @@ -2,7 +2,7 @@ binary_sensor: - platform: template id: bin1 lambda: |- - if (millis() > 10000) { + if (esphome::millis() > 10000) { return true; } return false; diff --git a/tests/components/endstop/common.yaml b/tests/components/endstop/common.yaml index b92b1e13b9..317b31b1cb 100644 --- a/tests/components/endstop/common.yaml +++ b/tests/components/endstop/common.yaml @@ -2,7 +2,7 @@ binary_sensor: - platform: template id: bin1 lambda: |- - if (millis() > 10000) { + if (esphome::millis() > 10000) { return true; } return false; diff --git a/tests/components/lock/common.yaml b/tests/components/lock/common.yaml index 9ba7f34857..35907fe679 100644 --- a/tests/components/lock/common.yaml +++ b/tests/components/lock/common.yaml @@ -15,7 +15,7 @@ lock: id: test_lock1 name: Template Lock lambda: |- - if (millis() > 10000) { + if (esphome::millis() > 10000) { return LOCK_STATE_LOCKED; } return LOCK_STATE_UNLOCKED; diff --git a/tests/components/pid/common.yaml b/tests/components/pid/common.yaml index 262e75591e..e9478103f6 100644 --- a/tests/components/pid/common.yaml +++ b/tests/components/pid/common.yaml @@ -25,7 +25,7 @@ sensor: - platform: template id: template_sensor1 lambda: |- - if (millis() > 10000) { + if (esphome::millis() > 10000) { return 42.0; } return 0.0; diff --git a/tests/components/prometheus/common.yaml b/tests/components/prometheus/common.yaml index cf46e882a7..f9bd471ce7 100644 --- a/tests/components/prometheus/common.yaml +++ b/tests/components/prometheus/common.yaml @@ -33,7 +33,7 @@ sensor: - platform: template id: template_sensor1 lambda: |- - if (millis() > 10000) { + if (esphome::millis() > 10000) { return 42.0; } return 0.0; @@ -46,7 +46,7 @@ text_sensor: - platform: template id: template_text_sensor1 lambda: |- - if (millis() > 10000) { + if (esphome::millis() > 10000) { return {"Hello World"}; } return {"Goodbye (cruel) World"}; @@ -56,7 +56,7 @@ binary_sensor: - platform: template id: template_binary_sensor1 lambda: |- - if (millis() > 10000) { + if (esphome::millis() > 10000) { return true; } return false; @@ -65,7 +65,7 @@ switch: - platform: template id: template_switch1 lambda: |- - if (millis() > 10000) { + if (esphome::millis() > 10000) { return true; } return false; @@ -79,7 +79,7 @@ cover: - platform: template id: template_cover1 lambda: |- - if (millis() > 10000) { + if (esphome::millis() > 10000) { return COVER_OPEN; } return COVER_CLOSED; @@ -88,7 +88,7 @@ lock: - platform: template id: template_lock1 lambda: |- - if (millis() > 10000) { + if (esphome::millis() > 10000) { return LOCK_STATE_LOCKED; } return LOCK_STATE_UNLOCKED;