[tests] Fix SNTP time ID conflicts in component tests for grouped testing (#11990)
CI / Create common environment (push) Has been cancelled
CI / Check pylint (push) Has been cancelled
CI / Run script/ci-custom (push) Has been cancelled
CI / Run pytest (macOS-latest, 3.11) (push) Has been cancelled
CI / Run pytest (ubuntu-latest, 3.11) (push) Has been cancelled
CI / Run pytest (ubuntu-latest, 3.13) (push) Has been cancelled
CI / Run pytest (windows-latest, 3.11) (push) Has been cancelled
CI / Determine which jobs to run (push) Has been cancelled
CI / Run integration tests (push) Has been cancelled
CI / Run C++ unit tests (push) Has been cancelled
CI / Run script/clang-tidy for ESP32 IDF (push) Has been cancelled
CI / Run script/clang-tidy for ESP8266 (push) Has been cancelled
CI / Run script/clang-tidy for ZEPHYR (push) Has been cancelled
CI / Run script/clang-tidy for ESP32 Arduino (push) Has been cancelled
CI / Run script/clang-tidy for ESP32 Arduino 1/4 (push) Has been cancelled
CI / Run script/clang-tidy for ESP32 Arduino 2/4 (push) Has been cancelled
CI / Run script/clang-tidy for ESP32 Arduino 3/4 (push) Has been cancelled
CI / Run script/clang-tidy for ESP32 Arduino 4/4 (push) Has been cancelled
CI / Test components batch (${{ matrix.components }}) (push) Has been cancelled
CI / pre-commit.ci lite (push) Has been cancelled
CI / Build target branch for memory impact (push) Has been cancelled
CI / Build PR branch for memory impact (push) Has been cancelled
CI / Comment memory impact (push) Has been cancelled
CI / CI Status (push) Has been cancelled

This commit is contained in:
J. Nick Koston
2025-11-18 23:19:54 -06:00
committed by GitHub
parent b3ef05e5e1
commit 100ea46f03
5 changed files with 9 additions and 5 deletions
+2 -2
View File
@@ -115,8 +115,8 @@ wifi:
password: PASSWORD123 password: PASSWORD123
time: time:
platform: sntp - platform: sntp
id: time_id id: sntp_time
text: text:
- id: lvgl_text - id: lvgl_text
+3 -3
View File
@@ -478,19 +478,19 @@ lvgl:
id: hello_label id: hello_label
text: text:
time_format: "%c" time_format: "%c"
time: time_id time: sntp_time
- lvgl.label.update: - lvgl.label.update:
id: hello_label id: hello_label
text: text:
time_format: "%c" time_format: "%c"
time: !lambda return id(time_id).now(); time: !lambda return id(sntp_time).now();
- lvgl.label.update: - lvgl.label.update:
id: hello_label id: hello_label
text: text:
time_format: "%c" time_format: "%c"
time: !lambda |- time: !lambda |-
ESP_LOGD("label", "multi-line lambda"); ESP_LOGD("label", "multi-line lambda");
return id(time_id).now(); return id(sntp_time).now();
on_value: on_value:
logger.log: logger.log:
format: "state now %d" format: "state now %d"
+1
View File
@@ -4,6 +4,7 @@ wifi:
time: time:
- platform: sntp - platform: sntp
id: sntp_time
mqtt: mqtt:
broker: "192.168.178.84" broker: "192.168.178.84"
+1
View File
@@ -3,6 +3,7 @@ wifi:
time: time:
- platform: sntp - platform: sntp
id: sntp_time
sensor: sensor:
- platform: uptime - platform: uptime
+2
View File
@@ -4,8 +4,10 @@ wifi:
time: time:
- platform: sntp - platform: sntp
id: sntp_time
wireguard: wireguard:
time_id: sntp_time
address: 172.16.34.100 address: 172.16.34.100
netmask: 255.255.255.0 netmask: 255.255.255.0
# NEVER use the following keys for your VPN -- they are now public! # NEVER use the following keys for your VPN -- they are now public!