Change % to percent in spoken text
This commit is contained in:
@@ -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": {
|
||||||
|
|||||||
Reference in New Issue
Block a user