Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsK1 authored Nov 24, 2024
1 parent eb78d99 commit f291b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/solvis_control/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def _handle_coordinator_update(self) -> None:
if len(str(response_data)) == 5:
response_data = str(response_data)
self._attr_native_value = (
f"{response_data[0]}.{response_data[1-2]}.{response_data[3-4]}"
f"{response_data[0]}.{response_data[1:2]}.{response_data[3:4]}"
)
if self._address == 32770:
self.device_info.sw_version = self._attr_native_value
Expand Down

0 comments on commit f291b0b

Please sign in to comment.