diff --git a/upsmon.py b/upsmon.py index 23e23ae..40d1692 100644 --- a/upsmon.py +++ b/upsmon.py @@ -33,7 +33,7 @@ EXPORT_KEYS: list[str] = [ ] def clean_data(v: str) -> float | str: - if v.isalpha(): + if v.replace(" ","").isalpha(): return v return float(v)