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):
|
def format(self):
|
||||||
if self.simulated:
|
if self.simulated:
|
||||||
return "5.3"
|
return "5.3"
|
||||||
if not self.value or not self.valid:
|
if (self.value is None) or not self.valid:
|
||||||
return self.placeholder
|
return self.placeholder
|
||||||
if self.value < 20:
|
if self.value < 20:
|
||||||
formatted = f"{self.value:3.1f}"
|
formatted = f"{self.value:3.1f}"
|
||||||
|
|
Loading…
Reference in New Issue