[ds1307] Use register_apply_action for ds1307.write_time and ds1307.read_time (#19638)

This commit is contained in:
J. Nick Koston
2026-09-25 14:09:26 -04:00
committed by GitHub
parent 63796e74bb
commit 2157ff5b4b
4 changed files with 15 additions and 18 deletions
@@ -0,0 +1,7 @@
button:
- platform: template
name: DS1307 Actions
on_press:
- ds1307.write_time:
id: ds1307_time
- ds1307.read_time: ds1307_time
@@ -0,0 +1,4 @@
packages:
i2c: !include ../../test_build_components/common/i2c/esp8266-ard.yaml
ds1307: !include common.yaml
actions: !include common-actions.yaml