Flows work + #302

This commit is contained in:
Jokob-sk
2023-08-04 06:41:11 +10:00
parent 1105caed16
commit 960a3ebe14
7 changed files with 384 additions and 13 deletions

View File

@@ -81,6 +81,7 @@ def cleanResult(str):
str = str.replace(".lan", "")
str = str.replace(".home", "")
str = re.sub(r'-[a-fA-F0-9]{32}', '', str) # removing last part of e.g. Nest-Audio-ff77ff77ff77ff77ff77ff77ff77ff77
str = re.sub(r'#.*', '', str) # Remove everything after '#' including the '#'
# remove trailing dots
if str.endswith('.'):
str = str[:-1]