Skip to content

Commit dfe199e

Browse files
renovate[bot]stephanme
authored andcommitted
fix(deps): update dependency pymodbus to v3.10.0
1 parent a73a65f commit dfe199e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

pvcontrol/meter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,13 @@ async def _read_data(self) -> MeterData:
229229
# kpc_ac_power_total_watts #172 -> pv
230230
# kpc_powermeter_total_watts #252 -> grid
231231
# TODO: read battery data
232-
regs_grid = await self._modbusClient.read_holding_registers(252, count=2, slave=self._unit)
232+
regs_grid = await self._modbusClient.read_holding_registers(252, count=2, device_id=self._unit)
233233
if regs_grid.isError():
234234
raise Exception(f"Error reading grid data: {regs_grid}")
235-
regs_consumption = await self._modbusClient.read_holding_registers(108, count=12, slave=self._unit)
235+
regs_consumption = await self._modbusClient.read_holding_registers(108, count=12, device_id=self._unit)
236236
if regs_consumption.isError():
237237
raise Exception(f"Error reading consumption data: {regs_grid}")
238-
regs_pv = await self._modbusClient.read_holding_registers(172, count=2, slave=self._unit)
238+
regs_pv = await self._modbusClient.read_holding_registers(172, count=2, device_id=self._unit)
239239
if regs_pv.isError():
240240
raise Exception(f"Error reading pv data: {regs_grid}")
241241

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies = [
1212
"fastapi==0.116.1",
1313
"myskoda==2.3.2",
1414
"prometheus-client==0.22.1",
15-
"pymodbus==3.9.2",
15+
"pymodbus==3.10.0",
1616
"pysma-plus==0.3.22.2",
1717
"rpi-gpio==0.7.1 ; ('arm' in platform_machine and 'linux' in sys_platform) or (platform_machine == 'aarch64' and 'linux' in sys_platform)",
1818
"uvicorn==0.35.0",

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)