def allow_block_device(self, mac_addr, device_status=BLOCK):
_LOGGER.info("<STR_LIT>")<EOL>if self.config_started:<EOL><INDENT>_LOGGER.error("<STR_LIT>")<EOL>return False<EOL><DEDENT>if not self.config_start():<EOL><INDENT>_LOGGER.error("<STR_LIT>")<EOL>return False<EOL><DEDENT>success, _ = self._make_request(<EOL>SERVICE_DEVICE_CONFIG, "<STR_LIT>",<EOL>{"<STR_LIT>": device_status, "<STR_LIT>": mac_addr})<EOL>if not success:<EOL><INDENT>_LOGGER.error("<STR_LIT>")<EOL>return False<EOL><DEDENT>if not self.config_finish():<EOL><INDENT>_LOGGER.error("<STR_LIT>")<EOL>return False<EOL><DEDENT>return True<EOL>
Allow or Block a device via its Mac Address.
Pass in the mac address for the device that you want to set. Pass in the
device_status you wish to set the device to: Allow (allow device to access the
network) or Block (block the device from accessing the network).