def close_allowed(self) -> bool:
        """Door can be closed unattended."""
        return next(
            attr['Value'] for attr in self._device_json.get('Attributes', [])
            if attr.get('AttributeDisplayName') == 'isunattendedcloseallowed')\
            == "1"