이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
탐색
도움말
가입하기
로그인
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 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
쓰기
미리보기
불러오는 중...
취소
저장