def preset_mode(self):
        """Return the current preset mode, e.g., auto, smart, interval, favorite."""
        if self._prop_mode:
            val = self._prop_mode.from_device(self.device)
            if val is not None:
                return self._prop_mode.list_description(val)
        return None
Return the current preset mode, e.g., auto, smart, interval, favorite.
custom_components/xiaomi_miot/fan.py