Skip to content

Commit 0b22aa4

Browse files
Fix handling values above 1000
1 parent 10c3c91 commit 0b22aa4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

custom_components/tge/connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def _get_column_with_number(row: Tag, number: int) -> str:
142142
@staticmethod
143143
def _parse_float(value: str, default: float) -> float:
144144
try:
145-
return float(value.replace(",", "."))
145+
return float(value.replace(" ", "").replace(",", "."))
146146
except ValueError:
147147
return default
148148

0 commit comments

Comments
 (0)