From a07dc994d7b80186fbaba58aa6d6670a5c1d5cce Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Fri, 10 Mar 2023 20:34:47 +0100 Subject: [PATCH] Fix RTC --- src/apps/plant.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/plant.py b/src/apps/plant.py index 69068a0..775acb8 100644 --- a/src/apps/plant.py +++ b/src/apps/plant.py @@ -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: