We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 603ec93 commit e14e061Copy full SHA for e14e061
custom_components/solaredge_modbus_multi/helpers.py
@@ -8,7 +8,9 @@ def watts_to_kilowatts(value):
8
return round(value * 0.001, 3)
9
10
def parse_modbus_string(s: str) -> str:
11
- return s.decode(encoding="utf-8", errors="ignore").replace("\x00", "").rstrip()
+ s = s.decode(encoding="utf-8", errors="ignore")
12
+ s = s.replace("\x00", "").rstrip()
13
+ return str(s)
14
15
def update_accum(self, accum_value: int) -> None:
16
0 commit comments