Skip to content

Conversation

@viswa-swami
Copy link
Contributor

In the set_motion_detection() function, the code is getting the current configuration, and then enabling/disabling the motion detection flag accordingly. The code is not checking if the get succeeded before trying to set the configuration.

Example, in a case where the foscam camera is not communicable, then if we try to give enable_motion_detection, then it will report an error that unable to set the "isEnable" flag etc.

This check fixes that error.

@viswa-swami
Copy link
Contributor Author

@sinchb Can you also please publish the pyfoscam to PIP as an incremental version? I would prefer to pull it directly from PIP and add the latest version as dependency for easier maintenance of my home automation system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants