mirror of
https://github.com/esphome/esphome.git
synced 2026-09-30 00:10:22 +00:00
[time] Use register_apply_condition for time.has_time (#19560)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user