greghesp / ha-bambulab

A Home Assistant Integration for Bambu Lab Printers
1.04k stars 91 forks source link

Switch to curl_cffi to pass cloudflare #709

Closed AdrianGarside closed 2 weeks ago

AdrianGarside commented 2 weeks ago

curl_cffi claims to better model a real browser. While it doesn't have the cloudflare specific features that cloudscraper has around captchas etc., we don't need those and, at least for now, curl_cffi is able to pass cloudflare.

Add handling for incorrect or expired verification codes.