Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
HomeAssistant
Core
Commits
58509f8b
Commit
58509f8b
authored
8 years ago
by
Lukas
Committed by
Paulus Schoutsen
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[0.34] bugfix influxdb node_id (#4712)
* Bugfix for #4709 - do not convert node_id to float * Update influxdb.py
parent
db6a6fa4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
homeassistant/components/influxdb.py
+2
-1
2 additions, 1 deletion
homeassistant/components/influxdb.py
with
2 additions
and
1 deletion
homeassistant/components/influxdb.py
+
2
−
1
View file @
58509f8b
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment