Exemplo n.º 1
0
 def __init__(self, ieee, manufacturer, model):
     """Init fake device."""
     self._application = APPLICATION
     self.ieee = convert_ieee(ieee)
     self.nwk = 0xb79c
     self.zdo = Mock()
     self.endpoints = {0: self.zdo}
     self.lqi = 255
     self.rssi = 8
     self.last_seen = time.time()
     self.status = 2
     self.initializing = False
     self.manufacturer = manufacturer
     self.model = model
Exemplo n.º 2
0
 def __init__(self, ieee, manufacturer, model):
     """Init fake device."""
     self._application = APPLICATION
     self.ieee = convert_ieee(ieee)
     self.nwk = 0xb79c
     self.zdo = Mock()
     self.endpoints = {0: self.zdo}
     self.lqi = 255
     self.rssi = 8
     self.last_seen = time.time()
     self.status = 2
     self.initializing = False
     self.manufacturer = manufacturer
     self.model = model
Exemplo n.º 3
0
    def __init__(self, ieee, manufacturer, model):
        """Init fake device."""
        self._application = APPLICATION
        self.ieee = convert_ieee(ieee)
        self.nwk = 0xB79C
        self.zdo = Mock()
        self.endpoints = {0: self.zdo}
        self.lqi = 255
        self.rssi = 8
        self.last_seen = time.time()
        self.status = 2
        self.initializing = False
        self.manufacturer = manufacturer
        self.model = model
        from zigpy.zdo.types import NodeDescriptor

        self.node_desc = NodeDescriptor()
Exemplo n.º 4
0
 def __init__(self):
     """Init fake application."""
     self.ieee = convert_ieee("00:15:8d:00:02:32:4f:32")
     self.nwk = 0x087d
Exemplo n.º 5
0
 def __init__(self):
     """Init fake application."""
     self.ieee = convert_ieee("00:15:8d:00:02:32:4f:32")
     self.nwk = 0x087D