BaQs / pyEzviz

Python package for ezviz cameras
Apache License 2.0
103 stars 45 forks source link

Fix battery camera work mode + add cmd line arguments #136

Closed rayquiz closed 10 months ago

rayquiz commented 10 months ago

Hello,

This is my first PR on this repo so I hope I did it well.

I have a BC1C battery camera and I was happy to see what was added in June to set the battery work mode.

Unfortunately, due to a typo, the status was erroneous (workMode instead of batteryCameraWorkMode) so I fixed it and added some command line arguments to be able to set it.

I will submit a corresponding PR on home-assistant to add a Select entity for the battery-work-mode too.

Note: I did not change the version to 0.2.2.3 but I can do it if needed

@RenierM26 : Sorry to disturb you but I don't know if I have to tag you or not. If you can take a look at this PR when you have time, thanks in advance :)

RenierM26 commented 10 months ago

LGTM. Thanks!