diff --git a/modules/firmware_apps/poweroff.py b/modules/firmware_apps/poweroff.py index d46746a..2885870 100644 --- a/modules/firmware_apps/poweroff.py +++ b/modules/firmware_apps/poweroff.py @@ -19,6 +19,7 @@ async def run(self, render_update): # Wait for an answer from the dialogue, and if it was yes, randomise colour if await dialog.run(render_update): import power + power.Off() self.off = True else: diff --git a/modules/system/power/app.py b/modules/system/power/app.py index ef0d57a..0dfcb8c 100644 --- a/modules/system/power/app.py +++ b/modules/system/power/app.py @@ -5,7 +5,6 @@ class PowerManager(App): def __init__(self): ... - async def background_task(self): while True: