BaseTextFilter: make functions async

This commit is contained in:
Aleix Conchillo Flaqué
2025-05-19 09:55:16 -07:00
parent 54b1d7fcc1
commit cbccbcd9e7
7 changed files with 43 additions and 36 deletions

View File

@@ -188,7 +188,7 @@ class HostResponseTextFilter(BaseTextFilter):
# No settings to update for this filter
pass
def filter(self, text: str) -> str:
async def filter(self, text: str) -> str:
# Remove case and whitespace for comparison
clean_text = text.strip().upper()
@@ -198,10 +198,10 @@ class HostResponseTextFilter(BaseTextFilter):
return text
def handle_interruption(self):
async def handle_interruption(self):
self._interrupted = True
def reset_interruption(self):
async def reset_interruption(self):
self._interrupted = False

View File

@@ -178,7 +178,7 @@ class HostResponseTextFilter(BaseTextFilter):
# No settings to update for this filter
pass
def filter(self, text: str) -> str:
async def filter(self, text: str) -> str:
# Remove case and whitespace for comparison
clean_text = text.strip().upper()
@@ -188,10 +188,10 @@ class HostResponseTextFilter(BaseTextFilter):
return text
def handle_interruption(self):
async def handle_interruption(self):
self._interrupted = True
def reset_interruption(self):
async def reset_interruption(self):
self._interrupted = False