From 3796ed5aa4074437e4f11d4fb7a8dcefda81518a Mon Sep 17 00:00:00 2001 From: Gerard Date: Sun, 6 Mar 2022 23:42:51 +0100 Subject: [PATCH] Change timeout screensaver to seconds --- apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py b/apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py index 24bfa510..c73f3e63 100644 --- a/apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py +++ b/apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py @@ -67,10 +67,11 @@ class NsPanelLovelanceUI: # set screensaver timeout timeout = self.config["timeoutScreensaver"] - if timeout > 65535: - timeout = 65535 - if timeout < 50: - timeout = 50 + if timeout > 60: + timeout = 60 + if timeout < 5: + timeout = 5 + timeout = timeout * 1000 self.send_mqtt_msg("timeout,{0}".format(timeout)) # send screensaver brightness