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 = requests.post(GOVEE_API_BASE_URL + 'device/control', headers=headers, json=payload)
|
||||||
req.raise_for_status()
|
req.raise_for_status()
|
||||||
|
print(req.json())
|
||||||
|
|
||||||
def set_to_original_color(self, sku, device):
|
def set_to_original_color(self, sku, device):
|
||||||
headers = {
|
headers = {
|
||||||
|
|||||||
+1
-1
@@ -291,7 +291,7 @@ def run():
|
|||||||
while True:
|
while True:
|
||||||
govee_api.set_diy_scene(GOVEE_DEVICE, GOVEE_SKU)
|
govee_api.set_diy_scene(GOVEE_DEVICE, GOVEE_SKU)
|
||||||
play_goal_celebration()
|
play_goal_celebration()
|
||||||
govee_api.set_to_original_color()
|
govee_api.set_to_original_color(GOVEE_DEVICE, GOVEE_SKU)
|
||||||
|
|
||||||
# while True:
|
# while True:
|
||||||
# now = time.time()
|
# now = time.time()
|
||||||
|
|||||||
Reference in New Issue
Block a user