mirror of
https://github.com/Manuel83/craftbeerpi3
synced 2026-08-09 18:52:40 +02:00
Merge pull request #39 from IndyJoeA/patch-1
Replace int with float in get_sensor_value()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user