Fix boat value speed placeholder code
This commit is contained in:
@@ -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}"
|
||||||
|
|||||||
Reference in New Issue
Block a user