From d86782109e3c09d2524ac5e0b5307bd1eda54f4a Mon Sep 17 00:00:00 2001
From: Marius <marius@twostairs.com>
Date: Sun, 28 Apr 2019 12:14:19 +0200
Subject: [PATCH] Fix for temperature not logging any more

---
 hue2influx.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hue2influx.py b/hue2influx.py
index 62324fe..35d3b55 100644
--- a/hue2influx.py
+++ b/hue2influx.py
@@ -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:
-- 
GitLab