mdeweerd / MetersToHA

Get Meter Data into Home Automation systems
GNU General Public License v3.0
26 stars 8 forks source link

fix(capmonster): fix errorId check and log for CapMonster #6

Closed bsegault closed 1 year ago

bsegault commented 1 year ago

I had an issue running meters to ha with CapMonster: it seems they changed the format for their API for the error code, from error_id to errorId. Changing it solves the issue (KeyError) I had. See API reference: https://zennolab.atlassian.net/wiki/spaces/APIS/pages/393308/createTask+captcha+task+creating#Response-structure

Also adjusted a log message to mention CapMonster instead of 2Captcha.

Thanks a lot for the huge work on this :)

Let me know if you need anything more for this PR

mdeweerd commented 1 year ago

Looks good to me! Thank you for the update.

You might be the first one to actually use this - I made a 'tentative' implementation.