benleb / surepy

🐾 Library & CLI to monitor and control the Pet Door & Cat Flap Connect 🚪 the Pet Feeder Connect 🍽 and the Felaqua 💦 sold by Sure Petcare
https://pypi.org/project/surepy/
MIT License
78 stars 38 forks source link

Add set_curfew #150

Closed therefromhere closed 1 year ago

therefromhere commented 2 years ago

Adds set_curfew method and curfew CLI command.

~Draft because it's not quite working currently. For some reason I'm getting a 500 error from the API, I haven't figured out why yet.~

therefromhere commented 2 years ago

I think I've figured it out - I think aiohttp client is sending form data by default, sending as JSON resolves the issue. Pushing a fix shortly.

therefromhere commented 2 years ago

Fixed, the curfew cli is working now.