From d8b397472874775e4396c2d543794d7303decc87 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Thu, 25 Feb 2021 20:50:40 +0100 Subject: [PATCH] use floats; explicit conversion --- owrx/form/device.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/owrx/form/device.py b/owrx/form/device.py index 222685a..e4b5165 100644 --- a/owrx/form/device.py +++ b/owrx/form/device.py @@ -353,7 +353,7 @@ class WaterfallLevelsInput(Input):
- +
dBFS
@@ -375,7 +375,7 @@ class WaterfallLevelsInput(Input): def getValue(name): key = "{}-{}".format(self.id, name) if key in data: - return {name: data[key][0]} + return {name: float(data[key][0])} raise KeyError("waterfall key not found") try: