From dd9e4ba1933c51da77129f8499361191f496c32f Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Sat, 2 May 2026 23:12:53 -0400 Subject: [PATCH] fix main --- scoreboard.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scoreboard.py b/scoreboard.py index 98cf313..b394e79 100644 --- a/scoreboard.py +++ b/scoreboard.py @@ -2,7 +2,6 @@ import time import requests import os import govee -import asyncio from time import sleep from PIL import Image, ImageDraw, ImageFont from rgbmatrix import RGBMatrix, RGBMatrixOptions, graphics @@ -292,10 +291,9 @@ async def run(): last_switch = time.time() while True: - async with govee_api: - await govee_api.send_scene(GOVEE_AWS) - play_goal_celebration() - await govee_api.set_color(255,0,0) + govee_api.send_scene(GOVEE_AWS) + play_goal_celebration() + govee_api.set_to_original_color() # while True: # now = time.time() @@ -335,4 +333,4 @@ async def run(): # time.sleep(0.03) if __name__ == "__main__": - asyncio.run(run()) \ No newline at end of file + run() \ No newline at end of file