Improve influxdb throughput (#12882)
* Batch influxdb events for writing * Name constants
This commit is contained in:
parent
2321603eb7
commit
d06807c634
2 changed files with 101 additions and 63 deletions
|
@ -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."""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue