Fix boat value speed placeholder code
This commit is contained in:
parent
2a345a1f09
commit
ca72797140
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue