File tree Expand file tree Collapse file tree
packages/modules/devices/openwb/openwb_flex Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ def initialize(self) -> None:
2626 self .__device_id : int = self .kwargs ['device_id' ]
2727 self .__tcp_client : modbus .ModbusTcpClient_ = self .kwargs ['client' ]
2828 factory = consumption_counter_factory (self .component_config .configuration .type )
29- self .__client = factory (self .component_config .configuration .id , self .__tcp_client )
29+ self .fault_state = FaultState (ComponentInfo .from_component_config (self .component_config ))
30+ self .__client = factory (self .component_config .configuration .id , self .__tcp_client , self .fault_state )
3031 self .sim_counter = SimCounter (self .__device_id , self .component_config .id , prefix = "bezug" )
3132 self .store = get_counter_value_store (self .component_config .id )
3233 self .fault_state = FaultState (ComponentInfo .from_component_config (self .component_config ))
You can’t perform that action at this time.
0 commit comments