tchellomello / python-amcrest

A Python 2.7/3.x module for Amcrest and Dahua Cameras using the SDK HTTP API.
GNU General Public License v2.0
213 stars 76 forks source link

Allow amcrest camera to be setup without async running #198

Closed flacjacket closed 2 years ago

flacjacket commented 2 years ago

In particular, if a thread is launched and a camera is setup in that, as is done in Home Assistant currently without async, then the asyncio loop is not available. Make the camera robust to this.