Improve influxdb throughput (#12882)

* Batch influxdb events for writing

* Name constants
This commit is contained in:
Anders Melchiorsen 2018-03-04 06:22:31 +01:00 committed by Paulus Schoutsen
parent 2321603eb7
commit d06807c634
2 changed files with 101 additions and 63 deletions

View file

@ -14,6 +14,9 @@ from tests.common import get_test_home_assistant
@mock.patch('influxdb.InfluxDBClient')
@mock.patch(
'homeassistant.components.influxdb.InfluxThread.batch_timeout',
mock.Mock(return_value=0))
class TestInfluxDB(unittest.TestCase):
"""Test the InfluxDB component."""