本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
註冊
登入
michal
/
craftbeerpi3
镜像来自
https://github.com/Manuel83/craftbeerpi3
關注
1
收藏
0
複製
0
程式碼
問題
0
版本發佈
2
Wiki
活動
瀏覽代碼
Merge pull request
#39
from IndyJoeA/patch-1
Replace int with float in get_sensor_value()
tags/3.1_alpha
Manuel83
GitHub
8 年之前
父節點
3b60c8cfd1
f1ec635f25
當前提交
0749c55478
共有
1 個檔案被更改
,包括
1 行新增
和
1 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
modules/core/core.py
+ 1
- 1
modules/core/core.py
查看文件
@@ -171,7 +171,7 @@ class SensorAPI(object):
def get_sensor_value(self, id):
try:
id = int(id)
return
in
t(self.cache.get("sensors")[id].instance.last_value)
return
floa
t(self.cache.get("sensors")[id].instance.last_value)
except Exception as e:
return None
Write
Preview
Loading…
取消
儲存