Skip to content

fix kostal counter power peaks#2579

Merged
LKuemmel merged 3 commits intoopenWB:masterfrom
ndrsnhs:fix-Kostal-Plenticore
Jul 18, 2025
Merged

fix kostal counter power peaks#2579
LKuemmel merged 3 commits intoopenWB:masterfrom
ndrsnhs:fix-Kostal-Plenticore

Conversation

@ndrsnhs
Copy link
Contributor

@ndrsnhs ndrsnhs commented Jul 18, 2025

No description provided.

Comment on lines 37 to 43
currents = [
self.client.read_holding_registers(
222, ModbusDataType.FLOAT_32, unit=self.modbus_id),
self.client.read_holding_registers(
232, ModbusDataType.FLOAT_32, unit=self.modbus_id),
self.client.read_holding_registers(
242, ModbusDataType.FLOAT_32, unit=self.modbus_id)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
currents = [
self.client.read_holding_registers(
222, ModbusDataType.FLOAT_32, unit=self.modbus_id),
self.client.read_holding_registers(
232, ModbusDataType.FLOAT_32, unit=self.modbus_id),
self.client.read_holding_registers(
242, ModbusDataType.FLOAT_32, unit=self.modbus_id)]
currents = [self.client.read_holding_registers(
reg, ModbusDataType.FLOAT_32, unit=self.modbus_id) for reg in [222, 232, 242]]

@LKuemmel LKuemmel merged commit c78f843 into openWB:master Jul 18, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants