Merge pull request #2 from jlti-dev/dev

Dev
This commit is contained in:
LarsTi 2022-11-16 09:11:34 +01:00 committed by GitHub
commit 2ab8a8402d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,8 @@ class TasmotaCollector(object):
label = string_values[i].split("{m}")[0]
value = string_values[i].split("{m}")[1].split("{e}")[0]
if "<td" in value:
value = value.replace("</td><td style='text-align:left'>", "").split("</td>")[0]
value = value.replace("</td><td style='text-align:left'>", "")
value = value.replace("</td><td>&nbsp;</td><td>", "")
values[label] = value
except IndexError: