Change % to percent in spoken text

This commit is contained in:
Ceda EI 2021-01-03 14:57:02 +05:30
parent 7ef7a3aebe
commit f1b2e7a3e4
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class FuelCheck(DaemonPlugin):
if ratio <= self.threshold:
if self.last_message is None:
desc = f"Only {int(ratio)}% fuel left. Please refill the tank."
self.speak(desc)
self.speak(desc.replace("%", " percent"))
self.emit("switchPlugin", {
"plugin": "warning",
"data": {