Private GIT

Skip to content
Snippets Groups Projects
Commit d8678210 authored by Marius's avatar Marius
Browse files

Fix for temperature not logging any more

parent c945e187
Branches
No related tags found
No related merge requests found
......@@ -81,7 +81,7 @@ class Hue2Influx:
if state_key == 'lastupdated':
continue
elif state_key == 'temperature':
state_value = state_value / 100
measurement['fields'][state_key] = state_value / 100
elif type(state_value) is dict:
measurement['fields'].update(self._flatten_dict(state_key, state_value))
elif type(state_value) is list:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment