mirror of
https://github.com/esphome/esphome.git
synced 2026-10-02 01:10:22 +00:00
[time] Use set_interval for CronTrigger instead of loop()
This commit is contained in:
@@ -6,5 +6,9 @@ api:
|
||||
|
||||
time:
|
||||
- platform: homeassistant
|
||||
on_time:
|
||||
- cron: "*/10 * * * * *"
|
||||
then:
|
||||
- logger.log: "CronTrigger fired (every 10 seconds)"
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
|
||||
Reference in New Issue
Block a user