diff --git a/surepy/client.py b/surepy/client.py index e4006cd..2a62b9b 100644 --- a/surepy/client.py +++ b/surepy/client.py @@ -398,13 +398,12 @@ async def set_curfew( resource = CONTROL_RESOURCE.format(BASE_RESOURCE=BASE_RESOURCE, device_id=device_id) data = { - "curfew": [ + "curfew": { "lock_time": lock_time.strftime("%H:%M"), "unlock_time": unlock_time.strftime("%H:%M"), "enabled": True, } - ] } if (