Change % to percent in spoken text
This commit is contained in:
parent
7ef7a3aebe
commit
f1b2e7a3e4
|
@ -21,7 +21,7 @@ class FuelCheck(DaemonPlugin):
|
||||||
if ratio <= self.threshold:
|
if ratio <= self.threshold:
|
||||||
if self.last_message is None:
|
if self.last_message is None:
|
||||||
desc = f"Only {int(ratio)}% fuel left. Please refill the tank."
|
desc = f"Only {int(ratio)}% fuel left. Please refill the tank."
|
||||||
self.speak(desc)
|
self.speak(desc.replace("%", " percent"))
|
||||||
self.emit("switchPlugin", {
|
self.emit("switchPlugin", {
|
||||||
"plugin": "warning",
|
"plugin": "warning",
|
||||||
"data": {
|
"data": {
|
||||||
|
|
Loading…
Reference in New Issue