mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
InfluxDB - change connection test method (#20666)
This commit is contained in:
parent
f19bbaec08
commit
aec8ad2188
@ -111,7 +111,7 @@ class InfluxSensor(Entity):
|
|||||||
database=database, ssl=influx_conf['ssl'],
|
database=database, ssl=influx_conf['ssl'],
|
||||||
verify_ssl=influx_conf['verify_ssl'])
|
verify_ssl=influx_conf['verify_ssl'])
|
||||||
try:
|
try:
|
||||||
influx.query("SHOW DIAGNOSTICS;")
|
influx.query("SHOW SERIES LIMIT 1;")
|
||||||
self.connected = True
|
self.connected = True
|
||||||
self.data = InfluxSensorData(
|
self.data = InfluxSensorData(
|
||||||
influx, query.get(CONF_GROUP_FUNCTION), query.get(CONF_FIELD),
|
influx, query.get(CONF_GROUP_FUNCTION), query.get(CONF_FIELD),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user