Пример #1
0
 def __init__(self,parent = None, persistenceLayer= None, name="home",description="Add Description here",status="active",*args,**kwargs):
     BaseComponent.__init__(self, parent)
     self._persistenceLayer = persistenceLayer
     self.name=name
     self.description=description
     self.status=status
     self._devices=DeviceManager(self)
     self._tasks=TaskManager(self)
Пример #2
0
 def __init__(self,
              parent=None,
              name="base_device",
              description="base device",
              *args,
              **kwargs):
     BaseComponent.__init__(self, parent)
     self._name = name
     self._description = description
     self.status = "inactive"
     self._driver = None
Пример #3
0
 def __init__(
     self,
     parent=None,
     persistenceLayer=None,
     name="home",
     description="Add Description here",
     status="active",
     *args,
     **kwargs
 ):
     BaseComponent.__init__(self, parent)
     self._persistenceLayer = persistenceLayer
     self.name = name
     self.description = description
     self.status = status
     self._devices = DeviceManager(self)
     self._tasks = TaskManager(self)
Пример #4
0
 def __init__(self,parent=None, name="base_device",description="base device",*args,**kwargs):
     BaseComponent.__init__(self, parent)
     self._name=name
     self._description=description
     self.status = "inactive"
     self._driver=None