def device_filter(self):
        """The device filter to use.

        :rtype: dict
        """
        if isinstance(self._device_filter, str):
            return self._decode_query(self._device_filter)
        return self._device_filter