File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535
3636module = type (sys )('pymodbus.transaction' )
3737module .ModbusSocketFramer = Mock ()
38+ module .ModbusRtuFramer = Mock ()
3839sys .modules ['pymodbus.transaction' ] = module
3940
4041module = type (sys )('socketserver' )
Original file line number Diff line number Diff line change 22from helpermodules .auto_str import auto_str
33from modules .common .component_setup import ComponentSetup
44
5+ from ..vendor import vendor_descriptor
6+
57
68@auto_str
79class AvmConfiguration :
@@ -27,6 +29,7 @@ def __init__(self,
2729 configuration : AvmConfiguration = None ) -> None :
2830 self .name = name
2931 self .type = type
32+ self .vendor = vendor_descriptor .configuration_factory ().type
3033 self .id = id
3134 self .configuration = configuration or AvmConfiguration ()
3235
Original file line number Diff line number Diff line change 22from helpermodules .auto_str import auto_str
33from modules .common .component_setup import ComponentSetup
44
5+ from ..vendor import vendor_descriptor
6+
57
68@auto_str
79class MystromConfiguration :
@@ -18,6 +20,7 @@ def __init__(self,
1820 configuration : MystromConfiguration = None ) -> None :
1921 self .name = name
2022 self .type = type
23+ self .vendor = vendor_descriptor .configuration_factory ().type
2124 self .id = id
2225 self .configuration = configuration or MystromConfiguration ()
2326
Original file line number Diff line number Diff line change 22from helpermodules .auto_str import auto_str
33from modules .common .component_setup import ComponentSetup
44
5+ from ..vendor import vendor_descriptor
6+
57
68@auto_str
79class NibeConfiguration :
@@ -19,6 +21,7 @@ def __init__(self,
1921 configuration : NibeConfiguration = None ) -> None :
2022 self .name = name
2123 self .type = type
24+ self .vendor = vendor_descriptor .configuration_factory ().type
2225 self .id = id
2326 self .configuration = configuration or NibeConfiguration ()
2427
Original file line number Diff line number Diff line change 22from helpermodules .auto_str import auto_str
33from modules .common .component_setup import ComponentSetup
44
5+ from ..vendor import vendor_descriptor
6+
57
68@auto_str
79class OrnoConfiguration :
@@ -19,6 +21,7 @@ def __init__(self,
1921 configuration : OrnoConfiguration = None ) -> None :
2022 self .name = name
2123 self .type = type
24+ self .vendor = vendor_descriptor .configuration_factory ().type
2225 self .id = id
2326 self .configuration = configuration or OrnoConfiguration ()
2427
You can’t perform that action at this time.
0 commit comments