Fix boat value speed placeholder code

This commit is contained in:
Thomas Hooge 2025-09-15 17:34:18 +02:00
parent 2a345a1f09
commit ca72797140
1 changed files with 1 additions and 1 deletions

View File

@ -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}"