[time] Use register_apply_condition for time.has_time (#19560)

This commit is contained in:
J. Nick Koston
2026-09-24 08:54:03 -04:00
committed by GitHub
parent 0ceefd5f91
commit 1671bb6dd3
3 changed files with 11 additions and 17 deletions
+9
View File
@@ -12,3 +12,12 @@ time:
- logger.log: "CronTrigger fired (every 10 seconds)"
- platform: sntp
id: sntp_time
esphome:
on_boot:
- if:
condition:
time.has_time:
id: sntp_time
then:
- logger.log: "sntp_time has valid time"