Skip to content

Commit

Permalink
Little bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsK1 committed Mar 31, 2024
1 parent e52dda2 commit 82f5d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/solvis_control/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def _async_update_data(self):
result = await self.modbus.read_holding_registers(register, 1, 1)
d = BinaryPayloadDecoder.fromRegisters(result.registers, byteorder=Endian.BIG)
parsed_data[register.name] = round(d.decode_16bit_int() * register.multiplier, 2)
await self.modbus.close()
self.modbus.close()

# Pass data back to sensors
return parsed_data

0 comments on commit 82f5d22

Please sign in to comment.