소스 검색

Merge pull request #39 from IndyJoeA/patch-1

Replace int with float in get_sensor_value()
tags/3.1_alpha
Manuel83 GitHub 8 년 전
부모
커밋
0749c55478
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +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 int(self.cache.get("sensors")[id].instance.last_value)
return float(self.cache.get("sensors")[id].instance.last_value)
except Exception as e:

return None


불러오는 중...
취소
저장