def current_operation(self):
        """Return current operation ie. eco, electric, performance, ..."""
        for p in self._prop_modes:
            val = p.from_device(self.device)
            if val is not None:
                return p.list_description(val)
        return None
Return current operation ie. eco, electric, performance, ...
custom_components/xiaomi_miot/water_heater.py