このサイトは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行の削除
分割表示
差分オプション
統計情報を表示
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
書き込み
プレビュー
読み込み中…
キャンセル
保存