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