Improve influxdb throughput (#12882)

* Batch influxdb events for writing

* Name constants
This commit is contained in:
Anders Melchiorsen authored and Paulus Schoutsen committed 2018-03-03 21:22:31 -08:00
1 parent 2321603eb7
commit d06807c634
2 files changed
+101 -63

No files matched your search

+3
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."""