Update __init__.py

This commit is contained in:
Lukas 2021-03-04 14:49:10 +01:00 committed by GitHub
parent 5874b0bda5
commit 7c94833634
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ class HTTPSensor(CBPiSensor):
try: try:
cache_value = cache.pop(self.props.get("Key"), None) cache_value = cache.pop(self.props.get("Key"), None)
if cache_value is not None: if cache_value is not None:
self.value = cache_value self.value = float(cache_value)
self.push_update(self.value) self.push_update(self.value)
except Exception as e: except Exception as e:
pass pass