Skip to content
Snippets Groups Projects
Commit e8b64f50 authored by ptangu01's avatar ptangu01
Browse files

add devtype

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@1383 b32b6428-25c9-4566-ad07-03861ab6144f
parent ca3892c6
Branches
No related tags found
No related merge requests found
......@@ -380,9 +380,9 @@ class VirtualDevice(Device):
class _ParentComposite(Device):
def __init__(self, devtype=None, address=None, parent=None):
def __init__(self, devtype, addr, parent=None):
self.__devices = []
Device.__init__(self, devtype, address, parent)
Device.__init__(self, devtype, addr, parent)
# devices
def add_device(self, dev):
......@@ -489,9 +489,8 @@ class GatewayError(DeviceError):
class Gateway(_ParentComposite):
def __init__(self, address=None):
_ParentComposite.__init__(self, None, address, None)
self.set_type('gateway.basic')
def __init__(self, addr, devtype='gateway.basic'):
_ParentComposite.__init__(self, devtype, addr, None)
def _get_addr_mapping(self):
addr_map = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment