Skip to content

Commit

Permalink
Merge pull request #9 from hostcc/feature/deps-update-timezone
Browse files Browse the repository at this point in the history
Allow timezone override
  • Loading branch information
hostcc authored Dec 9, 2023
2 parents b24a749 + da05f3d commit ff06697
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ substitutions:
display_id: display1
display_rotation: '0'
rtc_id: rtc_time
timezone: UTC

packages:
outputs: !include outputs.yaml
Expand Down
1 change: 1 addition & 0 deletions rtc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ i2c:

time:
- platform: ds1307
timezone: ${timezone}
id: ${rtc_id}

esphome:
Expand Down
1 change: 1 addition & 0 deletions time.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
time:
- platform: homeassistant
id: homeassistant_time
timezone: ${timezone}
on_time_sync:
- lambda: |-
#ifdef HAS_RTC
Expand Down

0 comments on commit ff06697

Please sign in to comment.