aboutsummaryrefslogtreecommitdiffstats
path: root/deckit/modules/tablet.py
diff options
context:
space:
mode:
Diffstat (limited to 'deckit/modules/tablet.py')
-rw-r--r--deckit/modules/tablet.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/deckit/modules/tablet.py b/deckit/modules/tablet.py
index 08f12fa..71f7a95 100644
--- a/deckit/modules/tablet.py
+++ b/deckit/modules/tablet.py
@@ -112,7 +112,6 @@ def make(cfg: dict) -> Module:
tcfg = cfg.get("tablet", {})
dim_after = max(0, int(tcfg.get("dim_after", 120)))
level = min(255, max(0, int(tcfg.get("dim_brightness", 8))))
- clock = {"clock_font": bool(tcfg.get("clock_font")), "clock_font_date": bool(tcfg.get("clock_font_date", True))}
saved = {} # mode and brightness from before a dim; empty while bright
try:
saved["mode"], saved["level"] = DIM_FILE.read_text().split()
@@ -155,5 +154,5 @@ def make(cfg: dict) -> Module:
pass
return Module(name="tablet", title="Tablet",
- state=lambda: {**state(), "dim_after": dim_after, **clock},
+ state=lambda: {**state(), "dim_after": dim_after},
actions={"dim": dim, "undim": undim}, stop=stop)