<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def aldb_device_handled(self, addr):
 """Remove device from ALDB device list."""

        if isinstance(addr, Address):
            remove_addr = addr.id
        else:
            remove_addr = addr
        try:
            self._aldb_devices.pop(remove_addr)
            _LOGGER.debug('Removed ALDB device %s', remove_addr)
        except KeyError:
            _LOGGER.debug('Device %s not in ALDB device list', remove_addr)
        _LOGGER.debug('ALDB device count: %d', len(self._aldb_devices))