使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
注册
登录
michal
/
craftbeerpi3
镜像自地址
https://github.com/Manuel83/craftbeerpi3
关注
1
点赞
0
派生
0
代码
工单
0
版本发布
2
百科
动态
浏览代码
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 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+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
撰写
预览
正在加载...
取消
保存