Skip to content
Snippets Groups Projects
Commit 2099d023 authored by Lukas's avatar Lukas Committed by Paulus Schoutsen
Browse files

[0.34] bugfix influxdb node_id (#4712)

* Bugfix for #4709 - do not convert node_id to float

* Update influxdb.py
parent 64b1179c
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,8 @@ def setup(hass, config):
for key, value in state.attributes.items():
if key != 'unit_of_measurement':
if isinstance(value, (str, float, bool)):
if isinstance(value, (str, float, bool)) or \
key.endswith('_id'):
json_body[0]['fields'][key] = value
elif isinstance(value, int):
# Prevent column data errors in influxDB.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment