Skip to content

Commit 8525bcb

Browse files
committed
fix janitza
1 parent 6504577 commit 8525bcb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/modules/devices/janitza/janitza/inverter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class KwargsDict(TypedDict):
1515
device_id: int
16-
client: modbus.ModbusTcpClient_
16+
tcp_client: modbus.ModbusTcpClient_
1717
modbus_id: int
1818

1919

@@ -24,7 +24,7 @@ def __init__(self, component_config: JanitzaInverterSetup, **kwargs: Any) -> Non
2424

2525
def initialize(self) -> None:
2626
self.__device_id: int = self.kwargs['device_id']
27-
self.__tcp_client: modbus.ModbusTcpClient_ = self.kwargs['client']
27+
self.__tcp_client: modbus.ModbusTcpClient_ = self.kwargs['tcp_client']
2828
self.__modbus_id: int = self.kwargs['modbus_id']
2929
self.sim_counter = SimCounter(self.__device_id, self.component_config.id, prefix="pv")
3030
self.store = get_counter_value_store(self.component_config.id)

0 commit comments

Comments
 (0)