-
-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chuangmi_camera: Improve home monitoring support #751
chuangmi_camera: Improve home monitoring support #751
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me besides the statically defined arrays, thanks for the PR!
miio/chuangmi_camera.py
Outdated
3, | ||
3, | ||
3, | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already defined as an enum below, so better simply use something like [enumvalue] * times
to create the array when needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the advice, fixed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks! 🎉
* fix: camera rotation argument name * add: set camera motion sensitivity * add: camera monitoring config * refactor: format * add: NAS config methods * fix: dynamically generated motion sensitivity arrays
General:
rotate
command (click.argument
name wasn't matching method's argument name).chuangmi.camera.ipc009
specific (maybe will work for other models too):