From ca727971408f0ff8655711c9974befe3cfc2a46b Mon Sep 17 00:00:00 2001 From: Thomas Hooge Date: Mon, 15 Sep 2025 17:34:18 +0200 Subject: [PATCH] Fix boat value speed placeholder code --- boatdata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boatdata.py b/boatdata.py index d879782..765d6a2 100644 --- a/boatdata.py +++ b/boatdata.py @@ -233,7 +233,7 @@ class BoatValueSpeed(BoatValue): def format(self): if self.simulated: return "5.3" - if not self.value or not self.valid: + if (self.value is None) or not self.valid: return self.placeholder if self.value < 20: formatted = f"{self.value:3.1f}"