Skip to content

Commit

Permalink
Review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
janiversen committed Sep 9, 2023
1 parent 339fe6e commit 90cfbf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/modbus/base_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def unpack_structure_result(self, registers: list[int]) -> str | None:
if isinstance(v_temp, int) and self._precision == 0:
v_result.append(str(v_temp))
elif v_temp is None:
v_result.append("nan")
v_result.append("0")
elif v_temp != v_temp: # noqa: PLR0124
# NaN float detection replace with None
v_result.append("nan")
Expand Down

0 comments on commit 90cfbf6

Please sign in to comment.