def hvac_action(self):
        """Return the current running hvac operation if supported.
        Need to be one of HVACAction.*.
        """
        if not self.is_on:
            return HVACAction.OFF
        if self._miot_service.name in ['heater']:
            return HVACAction.HEATING
        hvac = self.hvac_mode
        if hvac is None:
            return HVACAction.IDLE
        return self._hvac_modes.get(hvac, {}).get('action')
Return the current running hvac operation if supported.
        Need to be one of HVACAction.*.
        
custom_components/xiaomi_miot/climate.py