mirror of
https://github.com/Crocmagnon/plant-badger.git
synced 2024-11-22 01:18:02 +01:00
Fix RTC
This commit is contained in:
parent
7db2723540
commit
a07dc994d7
1 changed files with 2 additions and 1 deletions
|
@ -167,7 +167,8 @@ plant = HAPlant()
|
|||
plant.fetch_states()
|
||||
plant.display_state()
|
||||
|
||||
rtc.set_timer(secrets.REFRESH_INTERVAL_SECONDS)
|
||||
rtc.set_timer(secrets.REFRESH_INTERVAL_MINUTES, ttp=PCF85063A.TIMER_TICK_1_OVER_60HZ)
|
||||
|
||||
# Call halt in a loop, on battery this switches off power.
|
||||
# On USB, the app will exit when A+C is pressed because the launcher picks that up.
|
||||
while True:
|
||||
|
|
Loading…
Reference in a new issue