From 05265b526ee1eb49b4930e43801df805339c327a Mon Sep 17 00:00:00 2001 From: Roland Date: Fri, 29 Apr 2022 19:48:28 -0600 Subject: [PATCH] Only turning on hotspot while on-the-metal. --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index e2cd798d..8a181154 100755 --- a/main.py +++ b/main.py @@ -93,9 +93,10 @@ async def main(loop): tz = pytz.timezone(config.timezone) set_timezone(tz) - if config.hotspot_on_startup: + # Hotspot/throttle are not supported in Docker containers. + if not DOCKERIZED and config.hotspot_on_startup: admin.enable_hotspot() - if config.throttle_on_startup: + if not DOCKERIZED and config.throttle_on_startup: admin.throttle_cpu_on() check_media_directory()