fix?
This commit is contained in:
@@ -52,6 +52,7 @@ class GoveeApi:
|
||||
|
||||
req = requests.post(GOVEE_API_BASE_URL + 'device/control', headers=headers, json=payload)
|
||||
req.raise_for_status()
|
||||
print(req.json())
|
||||
|
||||
def set_to_original_color(self, sku, device):
|
||||
headers = {
|
||||
|
||||
+1
-1
@@ -291,7 +291,7 @@ def run():
|
||||
while True:
|
||||
govee_api.set_diy_scene(GOVEE_DEVICE, GOVEE_SKU)
|
||||
play_goal_celebration()
|
||||
govee_api.set_to_original_color()
|
||||
govee_api.set_to_original_color(GOVEE_DEVICE, GOVEE_SKU)
|
||||
|
||||
# while True:
|
||||
# now = time.time()
|
||||
|
||||
Reference in New Issue
Block a user