core/homeassistant/components/amcrest
Phil Bruckner 16d79b52c3 Serialize amcrest snapshot commands and bump PyPI package to 1.2.4 (#21664)
* Serialize snapshot commands and bump amcrest package to 1.2.4

Attempting to send a snapshot command when a previous one hasn't finished will result in warnings and/or errors. This can happen when the camera picture is clicked on in the frontend, resulting in the thread that updates the thumbnail in the background every 10 seconds to sometimes collide with the thread that updates the large picture in the foreground quickly. An automation that calls the camera.snapshot service in yet another thread can make the situation worse. Fix by adding a thread lock to serialize snapshot commands. Also bump the amcrest package to 1.2.4 which fixes error handling in the command method and improves performance by reusing requests sessions.

* Update amcrest package to 1.2.4
2019-03-05 17:03:19 +01:00
..
__init__.py Serialize amcrest snapshot commands and bump PyPI package to 1.2.4 (#21664) 2019-03-05 17:03:19 +01:00
camera.py Serialize amcrest snapshot commands and bump PyPI package to 1.2.4 (#21664) 2019-03-05 17:03:19 +01:00
sensor.py Update file header (#21023) 2019-02-13 21:21:14 +01:00
switch.py Update file header (#21023) 2019-02-13 21:21:14 +01:00