Esempio n. 1
0
 async def remove(service):
     """Remove a node from the network."""
     from bellows.types import EmberEUI64, uint8_t
     ieee = service.data.get(ATTR_IEEE)
     ieee = EmberEUI64([uint8_t(p, base=16) for p in ieee.split(':')])
     _LOGGER.info("Removing node %s", ieee)
     await APPLICATION_CONTROLLER.remove(ieee)
Esempio n. 2
0
 async def remove(service):
     """Remove a node from the network."""
     from bellows.types import EmberEUI64, uint8_t
     ieee = service.data.get(ATTR_IEEE_ADDRESS)
     ieee = EmberEUI64([uint8_t(p, base=16) for p in ieee.split(':')])
     _LOGGER.info("Removing node %s", ieee)
     await application_controller.remove(ieee)