Skip to content

Commit f7a81e2

Browse files
committed
fix pytest
1 parent ee73a9b commit f7a81e2

5 files changed

Lines changed: 13 additions & 0 deletions

File tree

packages/modules/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535

3636
module = type(sys)('pymodbus.transaction')
3737
module.ModbusSocketFramer = Mock()
38+
module.ModbusRtuFramer = Mock()
3839
sys.modules['pymodbus.transaction'] = module
3940

4041
module = type(sys)('socketserver')

packages/modules/devices/avm/avm/config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
from helpermodules.auto_str import auto_str
33
from modules.common.component_setup import ComponentSetup
44

5+
from ..vendor import vendor_descriptor
6+
57

68
@auto_str
79
class 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

packages/modules/devices/mystrom/mystrom/config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
from helpermodules.auto_str import auto_str
33
from modules.common.component_setup import ComponentSetup
44

5+
from ..vendor import vendor_descriptor
6+
57

68
@auto_str
79
class 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

packages/modules/devices/nibe/nibe/config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
from helpermodules.auto_str import auto_str
33
from modules.common.component_setup import ComponentSetup
44

5+
from ..vendor import vendor_descriptor
6+
57

68
@auto_str
79
class 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

packages/modules/devices/orno/orno/config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
from helpermodules.auto_str import auto_str
33
from modules.common.component_setup import ComponentSetup
44

5+
from ..vendor import vendor_descriptor
6+
57

68
@auto_str
79
class 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

0 commit comments

Comments
 (0)