瀏覽代碼

[variable] check if value is not none when casting

Maxime Alves LIRMM@home 3 年之前
父節點
當前提交
30d0b72e7f
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      pyheatpump/models/variable.py

+ 2
- 1
pyheatpump/models/variable.py 查看文件

@@ -97,7 +97,8 @@ class Variable(RowClass):
97 97
                 AND var.last_update > :since""",
98 98
             params)
99 99
 
100
-            if 'address' in row.keys() and 'value' in row.keys()
100
+            if 'address' in row.keys() and 'value' in row.keys() and
101
+                row['value'] is not None
101 102
         }
102 103
 
103 104
 

Loading…
取消
儲存